Why does MATLAB only calculate to 4 significant digits?

 Accepted Answer

It doesn't. It uses full double-precision floating point numbers to calculate everything. By default it only prints a few decimal places to the screen. You can change this using the command:
>>format long
Type:
>>doc format
for more information.
[From the MATLAB FAQ of ancient times...]

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!