How to avoid long decimals and unnecessary fractions on syms calculation

7 views (last 30 days)
Hello everybody,
I'm working on a robotic project in Master Science. I have a problem on calculating parametric symbolic in matlab. How can i avoid of this problem described in below?
Thanks in advance. Looking forward for your helps.
Best regards, Cem ÇAKMAK

Accepted Answer

John D'Errico
John D'Errico on 28 Oct 2018
You can't avoid them, as long as you do symbolic computations. Symbolic computations are represented using integers and ratios of integers. But you can convert those ratios of huge integers back into a decimal form using vpa at the end.

More Answers (1)

madhan ravi
madhan ravi on 28 Oct 2018
Edited: madhan ravi on 28 Oct 2018
vpa(yourmatrix,3)

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!