I want to run MATLAB code from iPython notebook.
I have installed the following libraries:
- ZeroMQ-4.0.4-miru1.0-x64.exe
- pyzmq-14.7.0
- pymatbridge-0.5.2
- matplotlib-1.4.3.win-amd64-py2.7.exe
- python 2.7
I am trying to connect MATLAB with iPython in order to run MATLAB commands with the following code:
import sys
sys.path.append('C:\Python27\Lib\site-packages\pymatbridge')
from pymatbridge import Matlab
mlab = Matlab()
mlab = Matlab(executable='C:\Program Files\MATLAB\R2013a\bin\matlab')
mlab.start()
However, the following message was obtained:
Starting MATLAB on ZMQ socket tcp://127.0.0.1:42987
Send 'exit' command to kill the server
............................................................MATLAB session timed out after 60 seconds
Also when running %load_ext pymatbridge
iPython-magic command returns:
The pymatbridge module is not an IPython extension.
Could you please help?