[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
unix('command')
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
programs.
However, since I don't have matlab, I have no idea if this works. *grin*
Take a look here for details:
The unix() command:
http://www.utexas.edu/math/Matlab/Manual/unix.html
The exclamation mark syntax:
http://www.utexas.edu/math/Matlab/Manual/Special.html
Matlab entries in the Vaults of Parnassus:
http://www.vex.net/parnassus/apyllo.py?find=matlab