How can I connect python script and mfile?

2 ビュー (過去 30 日間)
PeterHouse
PeterHouse 2017 年 4 月 10 日
編集済み: PeterHouse 2017 年 4 月 11 日
Hello, I have a problem with my connection between Python script and matlab.
I need call all from py-script. Open mfile, start run(F5) and save results.
It can be possible? And if yes, how?
Beforehand, I thank you for all the help.

回答 (1 件)

the cyclist
the cyclist 2017 年 4 月 10 日
It is the first link that came up when I googled call matlab from python.
  4 件のコメント
the cyclist
the cyclist 2017 年 4 月 10 日
編集済み: the cyclist 2017 年 4 月 10 日
Also, can you successfully run this simple example from the documentation?
import matlab.engine
eng = matlab.engine.start_matlab()
tf = eng.isprime(37)
print(tf)
If you can't get that to work, there is no point to figuring out your (presumably more complicated) actual code.
PeterHouse
PeterHouse 2017 年 4 月 11 日
編集済み: PeterHouse 2017 年 4 月 11 日
I'm sorry I didn't install the correct matlab.engine library. Can I find it somewhere here? Specific library?

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by