My purpose is to sequentially running a series of m-file and python programs.
And thanks to Mofi, Shai, and moarningsun, I could find out that this batch file is success
You can save all the relevant variables to a mat file at the end of aatest1
and load them at the begining of aatest2
.
You can run your python script in matlab (without terminating aatest1
).
Use matlab's system command to run the python script in Matlab:
[status,cmdout] = system( 'C:\python27\python.exe python.py input.xlsx' );