I wanted the matlab to show 5 places after the comma.

I know this is possible with 'format long'. But I wanted to specifically limit it to 5, is there any way to do that?

 Accepted Answer

Hello lucass!
Try, vpa
c=1/3
vpa(c,5)

1 Comment

It worked, but values ​​taken by the sqrt (x) function were left with 4 decimal places. Thanks

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!