views:

124

answers:

3

hi,

i am looking for a automatic translator from Matlab to python. I downloaded and installed LiberMate but it not documented anywhere and i wasn't able to make it work.

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

+8  A: 

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')
Yassin
yes, i know this page. Thanks but when you have thousands of lines to convert, it takes too much time.
Mermoz
You can try to call MATLAB from Python. Check updated answer
Yassin
+2  A: 

http://ompc.juricap.com/

Alex
A: 

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: http://www.scipy.org/NumPy_for_Matlab_Users with: http://mathesaurus.sourceforge.net/matlab-numpy.html

Mermoz