Display Output in Command Window
5 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!