Regularized SVD to find the least square solution
Show older comments
Hi all,
I am required to find a least square solution of system of linear equation (Ax = b) where the system is overdetermined. I notice that when i write A= vpa(A, 128) i get the full column rank whereas without vpa it is rank deficient matrix. I have used couple of mehods to solve this e.g
1 - x = A\b
2 - x = (A'*A\A'*b) ( produces the best ans so far but not perfect )
3 - x = pinv(double(A))*double(b)
4 - x = lsqminnorm(double(A'*A), double(A'*b))
but none of them seems to produce the solution i am wishing for. Kindly tell me other efficient ways of producing least square solution or let me know if i am going wrong.
2 Comments
Bruno Luong
on 2 Sep 2023
The code you cited none of them is regularized.
PNainwal
on 2 Sep 2023
Accepted Answer
More Answers (1)
Categories
Find more on Fixed-Point Matrix Operations in Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!