Thank you,
Does your matrix contain NaN?
Check with the command
find(isnan(A(:)))
Bruno
> No, The original matrix A, doesn't have any NaN value. the result of pinv(A) or pseudo inverse matrix of A have some NaN values.
Strange. I think it is a bug.
Try then my PSEUDOINVERSE of Fex if your Matlab has oriented object feature:
http://www.mathworks.com/matlabcentral/fileexchange/25453
Bruno
norm(A,'fro')
Bruno
Why compute the inverse to solve a linear system? inv(A'*A)*A' is a really bad way to solve the normal equations. Just use x=A\b.