The engine allows you to call Matlab methods from within python and access information from Matlab variables via it’s work-space etc. in Python itself. I have installed the engine fine with my normal Python 2.7 via:
cd "matlabroot\extern\engines\python"
python setup.py install
This way I was able to ‘import matlab.engine’ and use it perfectly well. I expected to open up Psychopy and import etc. right away but I’m getting the error:
ImportError: No module named matlab.engine.
I would like to know how to install this to Psychopy itself.
PsychoPy comes with it’s own bundle of python on Windows and Mac but uses a system-wide python on Linux. I presume that you’re using Mac or Windows, so you installed matlab.engine on another install of python than the one that psychopy uses. And so, when running from Coder, you cannot import that module.
Windows-only: start an editor on your system-wide python and set psychopy’s modules in your PYTHON_PATH. That’s what I do and I wrote a guide for Spyder: http://lindeloev.net/?page_id=216