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
madhan ravi 2018년 11월 21일
편집: madhan ravi 2018년 11월 21일

0 개 추천

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
Sergio 2018년 11월 21일
Thanks. Unfortunately clear all doesn't do the trick.
which format %in command window what does it show?
whos format
Sergio
Sergio 2018년 11월 21일
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 2018년 11월 21일
Good that you found one

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

질문:

2018년 11월 21일

댓글:

2018년 11월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by