How to call Python Script in Matlab
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi,
I want to call python script into Matlab for further processing. I watched couple of threads mentioned at https://stackoverflow.com/questions/1707780/call-python-function-from-matlab but always gets an error when do this in command prompt
>> py.ReadIFSLog
Unable to resolve the name py.ReadIFSLog
I have MATLAB 2020a. What am I doing wrong?
댓글 수: 0
채택된 답변
Kunal Kumar
2020년 11월 19일
I understand that you are trying to call your own python script from MATLAB command window.
The syntax that you are using is for calling python built-in modules from MATLAB, not scripts. Please have a look at the answer posted for a similar question.
댓글 수: 2
추가 답변 (1개)
Rifshu Hussain Shaik
2022년 2월 15일
try this in matlab to open python script
system('python filename.py');
댓글 수: 0
참고 항목
카테고리
Help Center 및 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!