Warning: Matrix is singular to working precision.

  • Thread starter Thread starter mikeph
  • Start date Start date
  • Tags Tags
    Matrix Precision
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 21K views
mikeph
Messages
1,229
Reaction score
18
Hello

I am generating a matrix which is coming up with this warning.

I know the matrix elements are correct though, as I put them in. But when I work with the matrix, the results don't make sense. I presume this warning is the reason.

Can anyone help? I don't understand why MATLAB can't just store the data I put in it properly. It is in the range 10^1 - 10^12. Is it just working to a single power and losing all the data which does not appear in the decimal representation? (rather than storing the exponent).

I don't understand how it works or how to work around this.

Thanks,
Mike
 
Physics news on Phys.org
It's not clear to me why you think MATLAB is NOT storing the data you put in. A matrix will be "singular to working precision" if its determinant is less than that precision. What is the determinant of your matrix?
 
It is not square.

Perhaps this is not the reason I am getting an error later on, it just seems to be a good candidate for investigation!