From help-octave-request at bevo dot che dot wisc dot edu Thu Jan 22 15:58:17 1998 Subject: problem passing variable to gnuplot From: Ray Anderson To: help-octave at bevo dot che dot wisc dot edu Cc: raymonda at radium dot Eng dot Sun dot COM 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. example: 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] octave:25> 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 raymonda at radium dot eng dot sun dot com