Re: calling matlab

Discussion in 'Python' started by Robert Kern, Oct 12, 2005.

  1. Robert Kern

    Robert Kern Guest

    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.


    Depending on how interactive it is, you should look at the subprocess
    module in the stdlib or pexpect.

    http://docs.python.org/lib/module-subprocess.html
    http://pexpect.sourceforge.net/

    --
    Robert Kern


    "In the fields of hell where the grass grows high
    Are the graves of dreams allowed to die."
    -- Richard Harter
     
    Robert Kern, Oct 12, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mohammed Smadi

    calling matlab

    Mohammed Smadi, Oct 12, 2005, in forum: Python
    Replies:
    3
    Views:
    588
    David Isaac
    Oct 25, 2005
  2. Carl

    Calling Python from Matlab

    Carl, Apr 15, 2006, in forum: Python
    Replies:
    11
    Views:
    14,888
    algoholic
    May 29, 2012
  3. siki
    Replies:
    0
    Views:
    975
  4. Replies:
    6
    Views:
    3,194
    JaiPillai
    Jul 26, 2010
  5. Luna Moon
    Replies:
    16
    Views:
    1,358
    Giovanni Gherdovich
    Aug 8, 2008
Loading...

Share This Page