[Tutor] Python & Matlab

Daniel Yoo dyoo@hkn.EECS.Berkeley.EDU
Wed, 9 Aug 2000 03:39:13 -0700 (PDT)

On Wed, 9 Aug 2000, F Wass wrote:

> does anyone know whether it's possible to call a 
> Python script from the Matlab Command Window?

According to the matlab reference manual, you can use '!' to execute
system commands; if you're on a UNIX system, you'll be able to call


and be able to get the errorlevel code when the script finishes.  You
should be able to use both approaches to call anything, including python

However, since I don't have matlab, I have no idea if this works.  *grin*

Take a look here for details:

The unix() command:

The exclamation mark syntax:

Matlab entries in the Vaults of Parnassus: