Matrix which columns form the eigenspace of the eigenvalue k of A?

I want to write a function EIGENSPACE, which takes a matrix A and a scalar k as argument and returns a matrix which columns form the eigenspace k of A.
A = [0,0,4;1,0,-17;0,1,8]
I guess I first have to write a function for row reductions and then identify the null-space from the (R)REF of A-k*eye(size(A)) OR something like this:
null(A-k*eye(size(A)), 'r')
Thanks in advance

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 26 Oct 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!