468,537 Members | 1,501 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,537 developers. It's quick & easy.

calling matlab

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

Oct 12 '05 #1
3 3747
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

Mohammed Smadi wrote:
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


Oct 12 '05 #2
"Mohammed Smadi" <sm*****@grads.ece.mcmaster.ca> wrote in message
news:ma*************************************@pytho n.org...
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/pytho...om_python.html.

Best of luck,
-- Paul
Oct 12 '05 #3

"hrh1818" <ho******@westerncom.net> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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.


I think that pymat was superceded by mlabwrap
http://mlabwrap.sourceforge.net/

Alan Isaac
Oct 25 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Paul McGuire | last post: by
9 posts views Thread by Carl | last post: by
3 posts views Thread by Ajith Menon | last post: by
1 post views Thread by eric_jin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.