Decreasing digits of answer
9 views (last 30 days)
Show older comments
Hello,
grad =

I have an output like this, but I want at most 6 digit of numbers. How can I change it? Please help me.
Thank you so much
0 Comments
Answers (1)
Paul
on 6 Jun 2023
Try:
vpa(grad,6)
9 Comments
Walter Roberson
on 6 Jun 2023
The sympref always uses 4. I misled when I showed digits(6) as if it controlled the output digits for the sympref
Paul
on 6 Jun 2023
To be clear, 'floatingpointoutput' = true only affects the display of results, not the results themselves.
See Also
Categories
Find more on Equation Solving 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!



