from python to matlab
Mostrar comentarios más antiguos
Respuesta aceptada
Más respuestas (2)
Wiley Mosley
el 1 de Ag. de 2019
0 votos
I think you might want to check this out:
1 comentario
qrqr
el 2 de Ag. de 2019
Loretta Laughrey
el 20 de Mayo de 2020
0 votos
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)
Categorías
Más información sobre Call MATLAB from Python en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!