Translate Matlab to Python

Matlab licenses are expensive. In order to allow more people to run your code, porting it to Python is a good alternative, with Numpy and Scipy coming into the scene.

I chanced upon this :

SMOP (Small Matlab and Octave to Python compiler) https://github.com/victorlei/smop

It does a pretty decent job of translating my matlab code to Python. Don’t think the Python code runs right away though. It’s a practical way of seeing the differences between Matlab and Python, syntax-wise. At the very least, it gives you a really good starting point for porting your Matlab code.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: