disp ( 'TEXT STRING' ); displays nothing in the console

This might have been asked before, but I don't know the right terminology. This wasn't a problem earlier today, but suddenly when I execute the following in matlab editor:
disp ( 'TEXT STRING' );
Output in console/command window equals:
disp ( 'TEXT STRING' );
Now I want/expect, am used to seeing this as well in the output/console or at least and this worked fine earlier today:
TEXT STRING
I have restarted Matlab, but that didn't help. Im experiencing the exact same issue in FreeMat, but suddenly it resolved itself after restarting that program. But want/need to use Matlab for now. Now I guess maybe a setting has been turned off, or is this aknown bug? Anyone know how to solve? Using Matlab R2014b,

 채택된 답변

Olga Sirley
Olga Sirley 2015년 3월 8일

0 개 추천

Seems like I forgot ending a for loop. Ending the for loop with end, and restarting Matlab seems to have resolved the issue.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2015년 3월 8일

답변:

2015년 3월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by