Display Output in Command Window

6 views (last 30 days)
Sergio
Sergio on 21 Nov 2018
Commented: madhan ravi on 21 Nov 2018
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.

Answers (1)

madhan ravi
madhan ravi on 21 Nov 2018
Edited: madhan ravi on 21 Nov 2018
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 Comments
Sergio
Sergio on 21 Nov 2018
I think I found a temporary solution. In my path folder, there were two functions that replaced disp and display.
Having removed those folders from the default path made the issue go away.
madhan ravi
madhan ravi on 21 Nov 2018
Good that you found one

Sign in to comment.

Categories

Find more on Entering Commands in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!