Format output at Command window and Workspace inconsistent

format shortEng;
a=12345.6789;
Command window output is:
12.3457e+003
But in Workspace a is:
1.2346e+04
Why are the output format different??

 Accepted Answer

Stephen23
Stephen23 on 20 Jul 2016
Edited: Stephen23 on 20 Jul 2016
They are not controlled by the same settings, so there is no reason why they have to be the same. It is possible that some features, such as the number of exponent digits, cannot be selected.
For the workspace viewer:
For the command window:

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Asked:

SP
on 20 Jul 2016

Edited:

on 20 Jul 2016

Community Treasure Hunt

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

Start Hunting!