我想从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.