当我尝试使用 pymatbridge 将 python 与 matlab 连接时,出现以下错误。
MATLAB started and connected!
Traceback (most recent call last):
File "pscript.py", line 4, in <module>
res = mlab.run('/home/GuestAccounts/Intern002/FingerPrint/fingerprintnew.m')
AttributeError: 'Matlab' object has no attribute 'run'
我该如何纠正这个问题?我使用以下脚本进行连接
from pymatbridge import Matlab
mlab = Matlab(matlab='/pkgs/matlab/R2009a/bin/matlab')
mlab.start()
res = mlab.run('/home/GuestAccounts/Intern002/FingerPrint/fingerprintnew.m')
print res['result']
提前致谢..