问题
I'm running a list of commands in a file:
matlab -nodesktop -nodisplay -nojvm -nosplash .............
xwin32 --session ....................
I would like to have them run without the GUI popping up in Windows and more of all I would like the command prompt GUI not to pop up, anyone have any idea how to do it? tnx
回答1:
Best you can do on Windows is:
batchScript.cmd
start /B /MIN matlab.exe -nodesktop -noFigureWindows -nosplash ^
-r "surf(peaks); saveas(gcf, 'output.eps'); quit;"
You can add the -wait
option if you need to process the results from MATLAB in a script (next command depends on output from previous one).
来源:https://stackoverflow.com/questions/10846734/running-a-cmd-file-without-gui-popping-up