Tips on calling Matlab from Python
Paul McGuire
bogus at bogus.net
Wed Mar 10 20:29:54 EST 2004
I've spent the past day or so working through the various complexities in
calling Matlab routines from Python (please do not reply with suggestions to
use Numpy/Scipy/etc. - our customer is using Matlab, and I needed to learn
how to access it through COM).
Matlab's COM API is actually pretty clean/simple, but there are a few
wrinkles, some undocumented "magic strings", and some odd surprises. Also,
the Matlab COM API was designed for lesser languages that do not have
built-in support for complex data. So I captured my usage notes, a simple
wrapper class, and some test code, to simplify this task.
You can find my notes at
http://www.geocities.com/ptmcg/python/using_matlab_from_python.html.
HTH,
-- Paul McGuire
More information about the Python-list
mailing list