5.0

5.0 | 3 ratings Rate this file 17 Downloads (last 30 days) File Size: 10.9 KB File ID: #27255

pymex

by

 

15 Apr 2010 (Updated )

Embeds the Python Interpreter in Matlab.

| Watch this File

File Information
Description

Embeds the Python Interpreter in Matlab. Allows for parsing of Matlab strings as Python code. Allows the programmer to move data in between Python and Matlab.

For a full description and examples:
http://vader.cse.lehigh.edu/~perkins/pymex.html

MATLAB release MATLAB 7.8 (R2009a)
Other requirements libython2.6, python2.6/Python.h, libdl, dlfcn.h, g++
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
10 Aug 2012 QUANYI MO

runs on python 2.7. Be careful if your want to use numpy-related module(your job and libraries are related to numerical computing right?). Matlab is shipping with numerical libraries with version lag(compared to your numpy installation). Do something like "setenv LD_PRELOAD /usr/lib64/libstdc++.so.6:/lib64/libgcc_s.so.1:/usr/lib64/libgfortran.so.3" before you run Matlab will solve it.

13 Nov 2011 Andrey

Good stuff. As usual, be prepared to edit C-code to reflect locations of standard headers in your operating system, and to comment out data types not supported for your operating system.

17 Nov 2010 eros montin

it's the easiest way to share data between python and Matlab workspace... brilliant and amazing thank you Eros

Updates
15 Jun 2011

Fixed the GIL. Threading works better.

10 Jul 2011

Fixed some variable transport weirdness. Added string support.

Contact us