资源地址:
https://github.com/jonathf/matlab2cpp
sudo python setup.py install
sudo pip install setuptools
sudo -s
pip install sphinx
pip install sphinxcontrib-autoprogram
pip install sphinxcontrib-napoleon
pip install sphinx-argparse
Argcomplete::
pip install argcomplete
activate-global-python-argcomplete
用法:
$ m2cpp example.m
This will create two files: example.m.hpp
and example.m.py
.
$ m2cpp example.m -s
The file example.m.py
will then automatically be populated with data typesfrom context::
这个是java版的:
https://github.com/clwade/Matlab2C