[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scripting question
From: |
Etienne Grossmann |
Subject: |
Re: Scripting question |
Date: |
Fri, 26 Mar 2004 18:32:31 -0500 |
User-agent: |
Mutt/1.4.2.1i |
Hi,
what about:
function pf (i,d), plot (d(1,:),d(i,:); end
pf(3,beul)
Note : you can put the 'function' line in a separate file pf.m in
octave's search path (LOADPATH variable).
On Fri, Mar 26, 2004 at 06:55:30AM -0800, John B. Thoo wrote:
# Thorsten---
#
[snip]
# >>octave:56> nframes = 10;
# >>octave:57> x = beul (1,:);
# >>octave:58> for i = 1:nframes
# >>> plotframe (i) = eval (sprintf ("plot (x, %s);", beul (i+1,:)));
# >>> endfor
[snip]
Note that
printf ("%s", 1:4)
has good reasons to cause complaints.
Cheers,
Etienne
--
Etienne Grossmann ------ http://www.cs.uky.edu/~etienne
-------------------------------------------------------------
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
-------------------------------------------------------------