Display Output in Command Window
古いコメントを表示
Hi,
Some function I ran has changed the way output is displayes in the command window.
>> 2+2
[double 1x1]
4.00000000
I think the disp or display functions have been overridden. I would like to restore the usual default format with ans. I have already tried
format short
but this is ignored and the output remains the same.
Thanks for your help.
回答 (1 件)
madhan ravi
2018 年 11 月 21 日
編集済み: madhan ravi
2018 年 11 月 21 日
clear all %at the very beginning of the code and try again
there might be some file ,variable or function with the name format please rename or delete it which might shadow the default built-in format
4 件のコメント
Sergio
2018 年 11 月 21 日
madhan ravi
2018 年 11 月 21 日
which format %in command window what does it show?
whos format
Sergio
2018 年 11 月 21 日
madhan ravi
2018 年 11 月 21 日
Good that you found one
カテゴリ
ヘルプ センター および File Exchange で Simulink Environment Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!