Warning: Matrix is singular to working precision.

  • Thread starter Thread starter mikeph
  • Start date Start date
  • Tags Tags
    Matrix Precision
Click For Summary
SUMMARY

The discussion centers on the warning "Matrix is singular to working precision" encountered in MATLAB when generating a matrix. The user, Mike, expresses confusion over the matrix's behavior despite inputting correct elements. A key point raised is that a matrix is considered singular if its determinant is less than the working precision, indicating potential issues with the matrix's square status. Understanding the determinant and matrix properties in MATLAB is crucial for resolving this warning.

PREREQUISITES
  • Understanding of MATLAB matrix operations
  • Knowledge of matrix determinants
  • Familiarity with numerical precision concepts
  • Experience with linear algebra
NEXT STEPS
  • Investigate how to calculate the determinant of a matrix in MATLAB
  • Learn about MATLAB's handling of numerical precision and floating-point representation
  • Explore the implications of singular matrices in linear algebra
  • Research methods to check if a matrix is square in MATLAB
USEFUL FOR

This discussion is beneficial for MATLAB users, data scientists, and engineers working with numerical computations who need to understand matrix properties and resolve precision-related warnings.

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!
 

Similar threads

Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
0
Views
886
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
950
  • · Replies 1 ·
Replies
1
Views
3K
Replies
2
Views
2K