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.
Matlab Function into Python
2 次查看(过去 30 天)
显示 更早的评论
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"
0 个评论
回答(1 个)
另请参阅
类别
在 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!