from python to matlab
Afficher commentaires plus anciens
Réponse acceptée
Plus de réponses (2)
Wiley Mosley
le 1 Août 2019
0 votes
I think you might want to check this out:
1 commentaire
qrqr
le 2 Août 2019
Loretta Laughrey
le 20 Mai 2020
0 votes
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)
Catégories
En savoir plus sur Call MATLAB from Python dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!