http://stackoverflow.com/questions/6657005/matlab-running-an-m-file-from-command-line
Suppose that;
I have an m-file at location:C:\M1\M2\M3\mfile.m
And exe file of the matlab is at this location:C:\E1\E2\E3\matlab.exe
I want to run this m-file with Matlab, from command-line, for example inside a .bat file. How can I do this, is there a way to do it?
----------------------------------------------------
A command like this runs the m-file successfully:
"C:\<a long path here>\matlab.exe" -nodisplay -nosplash -nodesktop -r "run('C:\<a long path here>\mfile.m');"
'Matlab ' 카테고리의 다른 글
save a figure to a TIFF image with resolution 300 dpi in MATLAB (0) | 2017.02.10 |
---|---|
Is there a way to connect to Microsoft SQL Server database without needing the database toolbox? (0) | 2017.02.08 |
start MATLAB from a DOS window running inside Windows (0) | 2017.02.06 |
Map grayscale to color using colormap (0) | 2017.02.06 |
GraycoProps의 Contrast가 계산되는 방법 (0) | 2017.02.03 |