Translate matlab to python/numpy

Mermoz picture Mermoz · Sep 17, 2010 · Viewed 7.2k times · Source

I am looking for an automatic code translator for Matlab to Python. I downloaded and installed LiberMate but it is not documented anywhere and I wasn't able to make it work.

Has anybody dealt with this kind of challenge before? Any advice welcome.

Answer

yassin picture yassin · Sep 17, 2010

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')