Hi all! A small doubt..MATLAB usually returns answers truncated upto 4 places after the decimal point. How to increase the number of places after the decimal? Is there any command to display the untruncated answer?
Thanks in advance.
Hi all! A small doubt..MATLAB usually returns answers truncated upto 4 places after the decimal point. How to increase the number of places after the decimal? Is there any command to display the untruncated answer?
Thanks in advance.
format e format long e
Matlab doesn't trunctate to 4 digits only. It only shows 4 digits. I like using vpa function. for example:
x =
1.0472
ans =
1.04720
ans =
1.0471976Regards, Asim V.
Thank you
Have something to add? Share your thoughts — no account required.
Ask the community — no account required