I wanted the matlab to show 5 places after the comma.
1 view (last 30 days)
Show older comments
I know this is possible with 'format long'. But I wanted to specifically limit it to 5, is there any way to do that?
0 Comments
Accepted Answer
Ayham Aljawabrah
on 5 May 2021
Edited: Ayham Aljawabrah
on 5 May 2021
Hello lucass!
Try, vpa
c=1/3
vpa(c,5)
More Answers (0)
See Also
Categories
Find more on Scope Variables and Generate Names 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!