Matlab Function into Python

1 回表示 (過去 30 日間)
Zen Matychak
Zen Matychak 2020 年 8 月 25 日
回答済み: Mohith Kulkarni 2020 年 8 月 28 日
You can call a matlab function in python by putting eng.function, but how do you call a personal function you made in matlab such as "getCityNames"

回答 (1 件)

Mohith Kulkarni
Mohith Kulkarni 2020 年 8 月 28 日
You can call user scripts from python in the same way. You have to save the MATLAB script in the current folder and call it from python using "eng.scriptname". Refer to the following link.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by