Hello all,
I encountered this error while I was trying to solve linear least square problem, ||Ax-b||. Trying to solve ([A](-1)b) to get x vector. MATLAB solves it like (A\b) and gives the correct answer.
I have properly followed the procedure given in
But when I am trying to use this subroutine (SGELSD) with my matrix A and B, which are of size (135x135) and (135x6) respectively, it throws the above mentioned error. My A matrix is singular, as its determinant is zero.
Matlab solves these ||Ax-b||, and gives the correct answer, so A and B matrix are good. I am reading these two matrices (A and b) in my fortran code.
Sorry for such a long post!!!!!!!!!
Thanks
Zone:
Thread Topic:
Help Me