1
$\begingroup$

I want to find the basis of null space in matlab. I know that I can find it by simply running ns = null(A,'R') or Z = null(A) but I was wondering what would be the way to that by "hand". What I wanna way is; Is there a way to find the null space basis of a matrix by running many for loops and ifs? If yes could you please help

$\endgroup$
0
$\begingroup$

If you can code up row-reduction by “hand”, then you should be able to use either of the methods described here to find a kernel basis.

$\endgroup$
0
$\begingroup$

Is there a way to find the null space basis of a matrix by running many for loops and ifs

Yes.

Wikipedia explains how you can use the Singular Value Decomposition to determine a basis for the nullspace of a matrix. The question then becomes "How do you calculate the SVD?", which wikipedia also answers, though its answer does not seem particularly enlightening. Maybe this is of more use.

$\endgroup$
  • $\begingroup$ Well, thanks for sharing but I don't think I'll be able to write that in matlab code, I am not so good :p $\endgroup$ – I.suck.Math. Apr 1 '16 at 7:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.