Warning: Matrix is singular to working precision.

  • Thread starter Thread starter mikeph
  • Start date Start date
  • Tags Tags
    Matrix Precision
AI Thread Summary
The discussion revolves around a user encountering a warning while generating a matrix in MATLAB, despite being confident that the matrix elements are correct. The user expresses confusion over why MATLAB may not be storing the data properly, particularly when the values range from 10^1 to 10^12. There is a concern that MATLAB might be losing data due to precision issues related to the matrix's determinant. A response suggests that the matrix may be "singular to working precision," indicating that its determinant could be less than the precision MATLAB can handle, which could lead to errors in subsequent calculations. The user acknowledges that the matrix is not square, which may also contribute to the issues faced.
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!
 
Back
Top