将 matlab 转换为 python/numpy

发布于 2024-09-19 19:49:12 字数 1539 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

朦胧时间 2024-09-26 19:49:36

安装 PyClips

libreMate

  • cd /path/to/libermate -0.4
  • ./libermate.py /path/to/matlabfile.m

这对我有用:-)

Install PyClips

libreMate

  • cd /path/to/libermate-0.4
  • ./libermate.py /path/to/matlabfile.m

This works for me :-)

感受沵的脚步 2024-09-26 19:49:31

看来除了手动翻译没有别的办法了。
我建议您同时在浏览器中打开这些页面:

http://www.mathworks.com/help/技术文档/
和:
http://www.scipy.org/Numpy_Example_List_With_Doc

和:
链接
和:
http://mathesaurus.sourceforge.net/matlab-numpy.html

i seems there is no other way than to do the translation manually.
I suggest you have these pages in your browser meanwhile:

http://www.mathworks.com/help/techdoc/
with:
http://www.scipy.org/Numpy_Example_List_With_Doc

and:
Link
with:
http://mathesaurus.sourceforge.net/matlab-numpy.html

不一样的天空 2024-09-26 19:49:28

我已经手动完成了。检查

[编辑]

您还可以尝试使用 Mlabwrap 从 Python 调用 MATLAB 代码,一个高级 Python 到 MATLAB 的桥梁,让 MATLAB 看起来像一个普通的 Python 库。

例如:

from mlabwrap import mlab
mlab.plot([1,2,3], '-o')

I've done it manually. Check this.

[EDIT]

You can also try to call your MATLAB code from Python using Mlabwrap, a high-level Python to MATLAB bridge that lets MATLAB look like a normal Python library.

For example:

from mlabwrap import mlab
mlab.plot([1,2,3], '-o')
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文