How can I run my functions from MATLAB in Python?
조회 수: 2 (최근 30일)
이전 댓글 표시
I am using PyCharm on Fedora32 and I have tried to use the API to call my MATLAB code from Python. I created a function in folder under my home directory and the folder was added to the MATLAB path (I can run my function in MATLAB). The problem is that I can start MATLAB as engine and call standard functions, but when I try to call my function it says that it doesn't exist.
댓글 수: 0
채택된 답변
Sean de Wolski
2020년 8월 18일
Try adding it to the MATLAB path from Python when you instantiate the engine (or navigate to the directory the file is in with eng.cd().
추가 답변 (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!