how to running MATLAB commands from DOS

1 visualizzazione (ultimi 30 giorni)
Efrat amarel
Efrat amarel il 1 Set 2015
Risposto: Walter Roberson il 1 Set 2015
hello, How to execute "MATLAB commands" from DOS without typing/ touch on MATLAB command prompt. I want run .m file and the commands in this file will perform.
Is it possible to do so? thanks!

Risposte (1)

Walter Roberson
Walter Roberson il 1 Set 2015
"C:\path\to\matlab.exe" -nodesktop -r "try; NAMEOFMFILE; catch ME; end; quit"
for example,
"C:\Programs (x86)\MATLAB2014b\bin\matlab.exe" -desktop -r "try; spaceinvaders; catch ME; end; quit"
Notice the ".m" extension is not to be given.

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by