execute cell content as lines of command in Matlab
18 ビュー (過去 30 日間)
古いコメントを表示
I have a cell that cintains execution command such as
A{1} = python run_my_code -m var1="1" var2 ="2"
A{2} = python run_my_code -m var1="2" var2 ="4"
...
When I use system(A{1}) it gives me sytax error.
The idea is to run all cell contetnts in a for loop within matlab.
Any help is appreciated
3 件のコメント
DGM
2022 年 1 月 28 日
I am not familiar with python, but if the errors are with python instead of matlab, then environment configuration sounds like something worth looking into.
回答 (1 件)
Yongjian Feng
2022 年 1 月 29 日
Try this first from matlab command line window:
pe = pyenv
This will tell you what python env is used by your matlab installation.
参考
カテゴリ
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!