Kicsi Mano
Kicsi Mano

Reputation: 3761

How can I compile and include Matlab files in Python under Ubuntu

I wrote a trajectory planner in Matlab, and I would like to compile as a .dll or .so to include in Python. Is it possible, if yes where and how can I start? I already installed the gcc and g++.

Upvotes: 5

Views: 755

Answers (2)

Andrew Walker
Andrew Walker

Reputation: 42480

Another support tool that might be of interest is MlabWrap.

If access to the MATLAB compilers is a problem, Octave and Pytave may be an alternative that is cheaper than a full rewrite

Upvotes: 1

tim
tim

Reputation: 10176

I'm asuming you coded m-Code and not C++-code in MATLAB (because the latter one would be easily convertable to some sort of C++ library): Perhaps try MATLAB-Coder which will help you generate C++ code from your m-Code: http://www.mathworks.de/products/matlab-coder/?s_cid=global_nav

Perhaps it's what you're looking for :)

Upvotes: 2

Related Questions