How to pull the directory information from a matlab script into python script.

조회 수: 6 (최근 30일)
Amit Kumar
Amit Kumar 2022년 12월 29일
답변: Walter Roberson 2022년 12월 29일
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.

답변 (1개)

Walter Roberson
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()

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by