Matlab答案
你现在正关注这个问题
//www.tianjin-qmedu.com/matlabcentral/answers/3082-IS-it-Possible-to-run-python-code-in-matlab#Comment_805002.
登录评论。
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#answer_4694
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#answer_316208
您可以使用该功能从Matlab调用Python脚本
系统(“python python_script.py”);
以同样的方式,您可以使用函数OS.System从Python运行Matlab脚本
导入操作系统打印“我在python”os.system(“matlab matlab_script.m”)
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#comment_647191
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it- possible-to-run-python-code-in-matlab#comment_761329
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it- possible-to-run-python-code-in-matlab#comment_767207
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#comment_788181
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#comment_800216
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#comment_1083458
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#comment_1393192
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#comment_1450952
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#comment_1632308
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#comment_1642488
//www.tianjin-qmedu.com/matlabcentral/answers/3082-is-it-possible-to-run-python-code-in-matlab#answer_418342
登录回答这个问题。
在MATLAB中心找到宝藏,并发现社区如何可以帮助你!
一个错误发生
由于对页面所做的更改,无法完成操作。重新加载页面以查看其更新状态。
选择一个网站,在那里获得翻译的内容,并看到当地的活动和优惠。根据您的位置,我们建议您选择:.
您还可以从以下列表中选择一个网站:
选择中国网站(中文或英文)以获得最佳网站性能。其他MathWorks国家站点没有针对您所在位置的访问进行优化。
联系您当地的办公室