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.
Issue Tracker: https://github.com/mrkrd/matlab_wrapper/issues
Source Code: https://github.com/mrkrd/matlab_wrapper
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+).
Metadata
Release files for matlab-wrapper 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| matlab_wrapper-1.tar.gz | 33.4 kB | Without provenance | Details |
Release files / matlab_wrapper-1.tar.gz
| Download URL | matlab_wrapper-1.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
115fba35393a1c6ef70aeb6b0d6f56fcec747fbbd745bdbf7ee5d4c776c56897
|
|
BLAKE2b-256 checksum How to use checksums |
0d7e1a4afe58f512bb707162d306c806633093d873322fdfe63a0acda3f93e71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/2.7.16
|
Security for matlab-wrapper 1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.