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

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by