how to cope with single precision error?

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 个评论

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.
@trish: Please post the complete error message and the relevant part of the code.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by