[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
calling Octave from Python
From: |
Geordie McBain |
Subject: |
calling Octave from Python |
Date: |
Thu, 22 Jul 2004 10:34:30 -0400 |
Hmm, I don't know, I've never tried to call Octave from Python. In Bash
scripts I often use things like
for n in 1 2 3
do
echo "disp ($n);" | octave -q
done
I presume there's a similar facility for system calls in Python.
Better pass this one to the help mailing list.
You can also check out http://wiki.octave.org/wiki.pl?CategoryExternal
for a collection of tips on interfacing Octave with other languages.
On Wed, 2004-07-21 at 10:16, Benny Wong wrote:
> Hey there,
>
> Is there any way I could call octave from a python script? Say if i run
> a python script from tcsh. Thank you.
>
> Regards,
> Benny
>
> Geordie McBain wrote:
>
> >Yes, Octave has a size command too.
> >
> > octave> A = zeros (3, 5);
> > octave> size (A), size (A, 1), size (A, 2), rows (A), columns (A)
> > ans =
> >
> > 3 5
> >
> > ans = 3
> > ans = 5
> > ans = 3
> > ans = 5
> > octave>
> >
> >On Tue, 2004-07-20 at 16:26, Benny Wong wrote:
> >
> >
> >>Hey there,
> >>
> >>like matlab where there's a "size()" command to obtain the size of the
> >>array, is there such a command in octave? Thank you
> >>
> >>Ben
> >>
> >>
> >>
> >>-------------------------------------------------------------
> >>Octave is freely available under the terms of the GNU GPL.
> >>
> >>Octave's home on the web: http://www.octave.org
> >>How to fund new projects: http://www.octave.org/funding.html
> >>Subscription information: http://www.octave.org/archive.html
> >>-------------------------------------------------------------
> >>
> >>
> >>
> >
> >
> >
> >
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------