I wrote the code for LU factorization , for partial pivoting and also for full pivoting .
Now , I want to find the “real” solution of the equation A*x = b . The real solution is without using pivoting (partial/full) , and no LU factorization .
How can I do this in matlab ? I guess it should be a single saved word , but not linsolve ,since
it uses LU factorization with partial pivoting when A is square and QR factorization with column pivoting otherwise .
Thanks
Is
Ainvertible?If so, then
should do the trick. If
Ais singular you can use thesvd()command to find its pseudo-inverse.