Decreasing digits of answer

9 views (last 30 days)
John Adams
John Adams on 6 Jun 2023
Commented: Paul on 6 Jun 2023
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

Answers (1)

Paul
Paul on 6 Jun 2023
Try:
vpa(grad,6)
  9 Comments
Walter Roberson
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
Paul on 6 Jun 2023
To be clear, 'floatingpointoutput' = true only affects the display of results, not the results themselves.

Sign in to comment.

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!