how to cope with single precision error?
Show older comments
hello people.i am new to matlab and thriving on tutorials and books to get a grip on this awesome computational tool.with an aim of calculating the reaction forces of the rigid supports that hold together a rigid rope subtending an angle from the horizontal,i derived the static equations(5 unknowns hence 5 equations) and framed a matrix to solve the set of linear equations by left division.i am getting an error which reads " single precision error" and the result is a column of NAN.where am i am going wrong and what remedial measures to take?
i have uploaded the code here
https://hotfile.com/dl/235640171/2cfe292/left_division_problem.mat.html
2 Comments
dpb
on 23 Jul 2013
Pare the code down to the minimum to show the formulation and the error--start w/ just the offending line and the error pasted from the command window; it's quite possible that will be enough for experienced folk to see the problem.
I don't recall seeing that particular error before--have you used single precision in the formulation? If so, why not use the default double precision and see what happens? Certainly doesn't sound like a memory-intensive problem where there's any need to try to economize on storage.
Jan
on 23 Jul 2013
@trish: Please post the complete error message and the relevant part of the code.
Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!