Some examples of how to use pymatlab.
If you don't have the matlab executable in you path, add it to the path first.
$ export PATH=/opt/MATLAB/R2013a/bin:$PATH
Runt the tests.
$ python setup.py test
import pymatlab matlab_session = pymatlab.session_factory() matlab_session.run('A = randn(4)') a = matlab_session.getvalue('A')
import pymatlab import numpy matlab_session = pymatlab.session_factory() a = numpy.random.randn(4,4) matlab_session.putvalue('A',a)