Warning: Matrix is singular to working precision.

  1. 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
     
  2. jcsd
  3. HallsofIvy

    HallsofIvy 40,367
    Staff Emeritus
    Science Advisor

    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?
     
  4. 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!
     
Know someone interested in this topic? Share a link to this question via email, Google+, Twitter, or Facebook

Have something to add?