calling matlab

M

Mohammed Smadi

Hi;

Does anyone know if we can call matlab for a python or bash script while
feeding the matlab script some command line arguments? I have an
interactive matlab script which i want to automate by feeding the args
from a script.

I know this is probably more suitable to a matlab group but any ideas will
be appreciated.

thanks
moe smadi
 
H

hrh1818

There is a module named pymat avvailable from
http://sourceforge.net/projects/pymat that provides a limited set of
functions for intertfacing Python to Matlab. The functions are:
open for opening a Matlab session
close for closing a Matlab session
eval for evaluating a Matlab command
put for sending a matrix to Matlab
get for getting a matrix from Matlab

Mohammed, you might want to look at this module to see if it has the
functionality you need.

Howard
 
P

Paul McGuire

Mohammed Smadi said:
Hi;

Does anyone know if we can call matlab for a python or bash script while
feeding the matlab script some command line arguments? I have an
interactive matlab script which i want to automate by feeding the args
from a script.

I know this is probably more suitable to a matlab group but any ideas will
be appreciated.

thanks
moe smadi
Mohammed -

I worked through this a while back, and posted my solution at
http://www.geocities.com/ptmcg/python/using_matlab_from_python.html.

Best of luck,
-- Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top