Running python function from Matlab
显示 更早的评论
Hello everyone,
I got one problem to ask. Is it possible to run a function from python file test.py? In my text.py there have many functions, so how can I call function from it? Is it possible I do not install Python in my computer and do that? Thanks so much, please give some advice. Thanks
BR buer
回答(1 个)
Michelle Hirsch
2014-10-7
1 个投票
You could try using the Python interface introduced in MATLAB R2014b. You would need Python on your machine.
A few resources which might help:
- Calling Python from MATLAB documentation
- Calling custom Python modules (shows how to call multiple functions from a single Python file).
2 个评论
buer
2014-10-15
Sarah Palfreyman
2014-10-15
Correct R2013b does not have the feature. The feature was introduced in R2014b which is available to download now.
类别
在 帮助中心 和 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!