displaying answer in MATLAB

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.

Reply to
Loading thread data ...

format e format long e

Reply to
Freelance Embedded Systems Eng

Matlab doesn't trunctate to 4 digits only. It only shows 4 digits. I like using vpa function. for example:

x =


ans =


ans =


Regards, Asim V.

Reply to

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.