You can call a matlab function in python by putting eng.function, but how do you call a personal function you made in matlab such as "getCityNames"

답변 (1개)

Mohith Kulkarni
Mohith Kulkarni 2020년 8월 28일

0 개 추천

You can call user scripts from python in the same way. You have to save the MATLAB script in the current folder and call it from python using "eng.scriptname". Refer to the following link.

카테고리

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

태그

질문:

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