from python to matlab
Mostra commenti meno recenti
Risposta accettata
Più risposte (2)
Wiley Mosley
il 1 Ago 2019
0 voti
I think you might want to check this out:
1 Commento
qrqr
il 2 Ago 2019
Loretta Laughrey
il 20 Mag 2020
0 voti
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)
Categorie
Scopri di più su Call MATLAB from Python in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!