from python to matlab
Ältere Kommentare anzeigen
Akzeptierte Antwort
Weitere Antworten (2)
Wiley Mosley
am 1 Aug. 2019
0 Stimmen
I think you might want to check this out:
1 Kommentar
qrqr
am 2 Aug. 2019
Loretta Laughrey
am 20 Mai 2020
0 Stimmen
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)
Kategorien
Mehr zu Call MATLAB from Python finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!