MATLAB: How to start MATLAB in the background from a DOS command prompt

cmddoskMATLABreturn

I want to start MATLAB from a DOS prompt. I do not want the DOS prompt to return to the next line, but rather to return to the next line only after MATLAB is closed.

Best Answer

To start MATLAB 7.0.1 (R14SP1) at a DOS prompt without having the DOS prompt return to the next line, make use of the "/k" switch for the "cmd" command in DOS.
Start a DOS command window by going to the Windows Start Menu and choosing "Run...". Type "cmd" and click "OK". Type the following at the DOS command prompt:
cmd /k matlab