How can I run my functions from MATLAB in Python?

2 ビュー (過去 30 日間)
Jaime Trivino
Jaime Trivino 2020 年 8 月 18 日
コメント済み: Jaime Trivino 2020 年 9 月 2 日
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.

採用された回答

Sean de Wolski
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().
  1 件のコメント
Jaime Trivino
Jaime Trivino 2020 年 9 月 2 日
Great! Thank you Sean.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by