File Exchange

image thumbnail

pymex

version 1.3 (10.9 KB) by

Embeds the Python Interpreter in Matlab.

3 Downloads

Updated

View License

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

Comments and Ratings (3)

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.

Andrey

Andrey (view profile)

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.

eros montin

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

Updates

1.3

Fixed some variable transport weirdness. Added string support.

1.2

Fixed the GIL. Threading works better.

MATLAB Release
MATLAB 7.8 (R2009a)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video