How do I find the (right) null space of a matrix?
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone.
I am trying to find the (Right) null space of a matrix - Aptech-Gauss' style - but the command "null" does not result in the same answer. How do I yield the same null space? I do not have Gauss, I am working only in Matlab. Thank you
0 comentarios
Respuestas (1)
John D'Errico
el 3 de Mayo de 2023
Editada: John D'Errico
el 3 de Mayo de 2023
Easy.
A = rand(5,2)*rand(2,3)
A has rank 2.
Arnull = null(A)
A*Arnull
It kills A, which is what the right nullspace would do. The left nullspace is also easy.
Alnull = null(A')'
Alnull*A
Again, only floating point crap remains.
Maybe your real question is the answer is not the same. But, do you understand that the nullspace need not be unique? You can always scale the nullspace vectors by any constant, and they are still valid nullspace vectors. And if there is more than 1 nullspace dimension, then linear combinations of the nullspace vectors are equally valid.
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!