[Math] Find null space basis matlab

linear algebraMATLABmatrices

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

Best Answer

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.