Calling python while program execution in matlab
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi there,
I would like to run my matlab code (assume in a for loop), and during each iteration of that loop call a python code and again come back to matlab.
Is such a thing possible?
P.S. consider the following simple example
for k = 1 : 7
% send "k" to python and pause matlab code
% execute python code (for example the code sends back weekday from python to matlab) and continue the code
end
Please provide a simple example (wether from python side to connect with matlab or wise versa).
0 Kommentare
Antworten (1)
ES
am 22 Jan. 2021
Please try Python Engine for MATLAB.
What you intend is fully achievable. https://in.mathworks.com/help/matlab/matlab-engine-for-python.html
1 Kommentar
Siehe auch
Kategorien
Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!