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

1 次查看(过去 30 天)
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
Seems like I forgot ending a for loop. Ending the for loop with end, and restarting Matlab seems to have resolved the issue.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by