MATLAB Answers

command window no output

7 views (last 30 days)
So something happened and my Matlab is no longer outputing results in the command window. Even if in the command windows I type '5*5' and hit enter, it just gives me a new lines, it does not output the results. And no, there is no semicolon after it. Error messages are not displaying there, pretty much nothing. Tried restarting several times too. Any ideas?

  0 Comments

Sign in to comment.

Accepted Answer

Shane Sullivan
Shane Sullivan on 25 Sep 2020
Not sure what exactly was the problem, but I did the total reset function described by Jan here: https://www.mathworks.com/matlabcentral/answers/1093-how-do-i-reset-matlab-to-its-launched-state
After running it and restarting, command window works.

  3 Comments

Adam Danz
Adam Danz on 25 Sep 2020
I've never used "!matlab &", what does that do? Is there any documentation on that?
The quit command is the same as exit but has some input options.
Image Analyst
Image Analyst on 25 Sep 2020
The exclamation point runs the stuff after it as if you had typed in into a console window of the operating system.
Adam Danz
Adam Danz on 25 Sep 2020
Oh, thanks! I didn't know that.

Sign in to comment.

More Answers (2)

Image Analyst
Image Analyst on 21 Sep 2020

  4 Comments

Show 1 older comment
Image Analyst
Image Analyst on 22 Sep 2020
Too bad you thought it was snarky. If you had called, you'd have it working by now. Since you won't for some reason, you can wait and wait until you have someone post an answer that works. But since no one has ever had the problem before, at least that posted here, you might be waiting a long time. Just curious, what is the reason you refuse to call tech support? Like I said, it's fast and free.
Shane Sullivan
Shane Sullivan on 25 Sep 2020
My apologizes if I misinterperted your response.
Image Analyst
Image Analyst on 25 Sep 2020
In case anyone else has that problem, it would be nice for them if you came back here and tell us what tech support's solution was, even if it was to just uninstall and re-install. Thanks in advance.

Sign in to comment.


Jan
Jan on 21 Sep 2020
Edited: Jan on 21 Sep 2020
Check if you have shadowed the display function:
w = cellstring(which('display', '-all'));
fprintf('%s\n', w{:})
What do you see?
Maybe fprintf is impeded also. Then:
file = fullfile(tempdir, 'myOutput.txt');
fid = fopen(file, 'w');
fprintf(fid, '%s\n', w{:});
fclose(fid)
edit(file)

  3 Comments

Shane Sullivan
Shane Sullivan on 22 Sep 2020
Jan, none of those results in any output to the command console either.
Jan
Jan on 24 Sep 2020
The 2nd code writes the needed output to a file, not to the command window. It would help to analyse your problem, if you post the contents of this file.
Did you create a function called "display.m"?
Shane Sullivan
Shane Sullivan on 25 Sep 2020
The file also has nothing in it. It is blank. No, I did not create a function called display.m either.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!