How to pull the directory information from a matlab script into python script.
6 次查看(过去 30 天)
显示 更早的评论
How to pull the directory information (or any other information) from a matlab script into python script.
Suppose I have any directory in my matlab script for example:
stat=’abc’;
I have another script using python. Command of the python script (xyz.py) is followed by:
system(python2 xyz.py)
My interest is to call the “stat” information from matlab scrpt to python script.
This will reduce my effort rather that putting directory information in my python script.
0 个评论
回答(1 个)
Walter Roberson
2022-12-29
https://www.mathworks.com/help/matlab//matlab_external/ways-to-call-python-from-matlab.html
pyrun from inside matlab instead of using system()
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!