Running multiple m-files by batch on Windows OS “without” closing previously run m-file

后端 未结 2 700
醉话见心
醉话见心 2021-01-27 08:21

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

2条回答
  •  被撕碎了的回忆
    2021-01-27 09:01

    Option 1:

    You can save all the relevant variables to a mat file at the end of aatest1 and load them at the begining of aatest2.

    Option 2:

    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' );
    

提交回复
热议问题