Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > calling matlab

Reply
Thread Tools

calling matlab

 
 
Mohammed Smadi
Guest
Posts: n/a
 
      10-12-2005
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

 
Reply With Quote
 
 
 
 
hrh1818
Guest
Posts: n/a
 
      10-12-2005
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


 
Reply With Quote
 
 
 
 
Paul McGuire
Guest
Posts: n/a
 
      10-12-2005
"Mohammed Smadi" <> wrote in message
news:mailman.1956.1129122707.509.python-...
> 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


 
Reply With Quote
 
David Isaac
Guest
Posts: n/a
 
      10-25-2005

"hrh1818" <> wrote in message
news: 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Python from Matlab Carl Python 11 05-29-2012 10:14 AM
need help!!! calling Matlab from c++ rotarywing@gmail.com C++ 6 07-26-2010 02:26 AM
vectorized computation in C++ such as those in Matlab (Matlab toC++)? Luna Moon C++ 16 08-08-2008 04:27 PM
Eclipse RCP and MATLAB (calling MATLAB from JAVA) siki Java 0 01-16-2007 04:19 AM
Re: calling matlab Robert Kern Python 0 10-12-2005 03:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57