Just pass the variable in a function call:
In Python:
eng = matlab.engine.start_matlab("-desktop")
eng.cd(myscripts, nargout=0) # change to the folder with the scripts
results = eng.mymatlabscript(self.A, self.B, nargout = 0, async = False)
In MATLAB
function mymatlabscript(A, B)
댓글 수: 2
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/474423-from-python-to-matlab#comment_730671
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/474423-from-python-to-matlab#comment_730671
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/474423-from-python-to-matlab#comment_730928
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/474423-from-python-to-matlab#comment_730928
댓글을 달려면 로그인하십시오.