Use MATLAB Screen as DOS Prompt

2 views (last 30 days)
Umberto
Umberto on 30 Nov 2011
Hi guys,
I know for a fact that you can use the MATLAB screen as the Windows DOS prompt, i.e. make the MATLAB command line look exactly like the windows cmd, C:\ and all. I am sure because someone actually showed it to me once. Now I can't for the life of me find out how to do it. I've searched the hell out of Google to no avail. Does anyone have any idea how it's done?
Thank you in advance.

Answers (3)

Jason Ross
Jason Ross on 30 Nov 2011
Try
system('cmd')
  1 Comment
Umberto
Umberto on 30 Nov 2011
That's it! Thank you so much! I'm a little embarrassed that it's so simple to be honest....I don't know why I remembered it to be so complicated. I might have created that memory myself after the hours I spent looking for this.
Thanks again.

Sign in to comment.


Daniel Shub
Daniel Shub on 30 Nov 2011
I think you want to start MATLAB with the -nodesktop option.
matlab -nodesktop

Umberto
Umberto on 30 Nov 2011
Hi all,
Thanks for your answers but maybe I was not clear with my question. I know that the Matlab command prompt can be used as a windows command prompt by putting a ! before the command. That's the functionality I want, except I don't want to be using the !.
I once saw someone make the Matlab command prompt function exactly like the windows cmd. So what you would see when you hit Start-Run-cmd (in XP) would all be there, but in a Matlab window.
Thanks again for the responses.

Categories

Find more on Startup and Shutdown 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!