Embedding Python in MATLAB
I am trying to embed Python 2.6 into MATLAB (7.12). I wanted to embed with a mex file written in C. This worked fine for small simple examples using scalars. However, if Numpy (1.6.1) is imported in anyway MATLAB crashes. I say anyway because I have tried a number of ways to load the numpy libraries including In the python module (.py): from numpy import * With PyRun_SimpleString in the mex file: PyRun_SimpleString(“from numpy import *”); Calling numpy functions with Py_oBject_CallObject : pOut = PyObject_CallObject(pFunc, pArgs); Originally, I thought this may be a problem with embedding