• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

mrkrd/matlab_wrapper: Easy to use MATLAB wrapper for Python

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

mrkrd/matlab_wrapper

开源软件地址(OpenSource Url):

https://github.com/mrkrd/matlab_wrapper

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

matlab_wrapper

With matlab_wrapper you can easily talk to MATLAB from your Python scripts and an interactive shell. MATLAB session is started in the background and appears as a regular Python object.

Info: matlab_wrapper is maintained, but not actively developed.

Usage

Initialize:

import matlab_wrapper
matlab = matlab_wrapper.MatlabSession()

Low level:

matlab.put('a', 12.3)
matlab.eval('b = a * 2')
b = matlab.get('b')

Workspace:

s = matlab.workspace.sin([0.1, 0.2, 0.3])

sorted,idx = matlab.workspace.sort([3,1,2], nout=2)

matlab.workspace.a = 12.3
b = matlab.workspace.b

More examples are in the examples directory!

Features

  • Access MATLAB variables and functions from Python
  • Multiplatform: GNU/Linux, Windows, OS X
  • On-the-fly conversion between MATLAB and Numpy data types
  • Support for MATLAB's numerical, logical, struct, and cell arrays
  • Pure Python, no need to compile anything (matlab_wrapper talks to MATLAB engine library using ctypes)

For a complete list of changes including new features, check the NEWS.rst file.

Installation

First, make sure that you have the following components installed:

  • Python 2.7
  • MATLAB (various versions)
  • Numpy

Next, install matlab_wrapper using pip (the standard Python package installation tool) from your command line:

pip install matlab_wrapper

Contribute

Check our CONTRIBUTING guidelines.

Support

If you are having issues, please let me know through the issue tracker: https://github.com/mrkrd/matlab_wrapper/issues. Try to avoid duplicates by searching previous issues, checking FAQ, and CONTRIBUTING.

Acknowledgments

matlab_wrapper was forked from pymatlab.

MATLAB is a registered trademark of The MathWorks, Inc.

License

The project is licensed under the GNU General Public License v3 or later (GPLv3+).




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap