matlab -nosplash -nodesktop -r "cd C:\Temp;test1;quit" -logfile C:\Temp\logfile1.txt echo This is a test matlab -nosplash -nodesktop -wait -r "cd C:\Temp;test2;quit" -logfile C:\Temp\logfile2.txt
MATLAB: Does only one line in the batch file get executed when working with MATLAB 7.4 (R2007a)
MATLAB
I have a batch file that runs a MATLAB program, then echos some text in the command prompt and then runs a second program in a new process. My batch file looks like as follows:
When I execute the batch file in the command prompt, only the first command is executed. I do not see the echo message and the second program does not get executed.
Related Question
- Do I get an error when I start Simulink on MATLAB 7.1 (R14SP3) Automation Server
- How to call MATLAB from a Windows command prompt or a Linux Shell and not return control until MATLAB has finished executing
- Does UNIX command not reflect the changes I applied in MATLAB 7.4 (R2007a)
- Does MATLAB hang when I use the SIM command in a for loop in MATLAB 7.0 (R14)
- How to call MATLAB from the DOS prompt
- Do I get an error when running BUILDMCR in MATLAB 7.4 (R2007a)
- How to run multiple m files one after another
Best Answer