Calling python while program execution in matlab
이전 댓글 표시
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).
답변 (1개)
ES
2021년 1월 22일
0 개 추천
Please try Python Engine for MATLAB.
What you intend is fully achievable. https://in.mathworks.com/help/matlab/matlab-engine-for-python.html
댓글 수: 1
Sajjad Asefi
2021년 1월 22일
편집: Sajjad Asefi
2021년 1월 22일
카테고리
도움말 센터 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!