I am trying to call simulink file in python through some function from python. But when I call matlab function in python, the function does not pass input parameters to simulink file and I receive following error:MatlabExecutionError: TIMESPAN parameter must be a real scalar or vector. However, it behaves perfectly when I work only in matlab environment.

댓글 수: 2

Harshendra Shah
Harshendra Shah 2020년 8월 28일
Have you checked MATLAB Engine API for Python?
Afraz MEHMOOD CHAUDHRY
Afraz MEHMOOD CHAUDHRY 2020년 8월 28일
its working now. I was not following syntax of python thats why I was getting an error. Thanks

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

질문:

2020년 8월 25일

댓글:

2020년 8월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by