[Top][All Lists]

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

problem passing variable to gnuplot

From: Ray Anderson
Subject: problem passing variable to gnuplot
Date: Thu, 22 Jan 1998 13:57:37 -0800 (PST)

I am attempting to utilize some variables as arguments to
be passed to gnuplot. I get an error "undefined variable"
when I attempt this even though I know the variable is
defined and exists in the current scope.

        octave:21> a=1;
        octave:22> b=2;
        octave:23> gset xrange [a:b];
         line 0: undefined variable: a
If I just put the number in the gnuplot command everything 
works as I expect with no error:
        octave:24> gset xrange [1:2]
        What  is the proper way to accomplish the passing of
        variable arguments to gnuplot?
(I am using octave 2.0.9 and gnuplot 3.6 beta)

Ray Anderson


reply via email to

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