help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

passing variable to 'gset arrow'


From: David Larom
Subject: passing variable to 'gset arrow'
Date: Mon, 03 May 1999 17:32:44 -0700

I can't get octave to plot an arrow with variable instead of constant
input, while it works fine in gnuplot. In gnuplot, I can say:

plot(sin(x))
a=5
set arrow from a,0 to a,1
replot

and the arrow appears on the plot just fine.
HOWEVER,
if in octave I say:

b=-10:10;
plot(b,sin(b))
hold;
a=5
gset arrow from a,0 to a,1

I get the error message "line 0: undefined variable: a".
can anyone help? Is there a way to pass a variable to 
"gset arrow"?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]