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??

 采纳的回答

Stephen23
Stephen23 2016-7-20
编辑:Stephen23 2016-7-20
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:

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by