我想從Python運行Matlab函數(test.m)
。我使用mcc -m
命令將函數轉換爲exe文件test.exe
;我可以從windows的命令提示符運行它test.exe
。從Python運行Matlab M函數
在另一邊,當我運行使用使用os.system和subprocess.call被Python exe文件,它工作得很好:
subprocess.call('C:\Program Files\DVD Maker\DVDMaker.exe',shell=True)
(我DVDMaker打開)
但是,當我運行
subprocess.call('C:\...\test.exe',shell=True)
我收到此: The filename, directory name or volume label syntax is incorrect.