[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: passing strings to GNUplot
From: |
Mario Storti |
Subject: |
Re: passing strings to GNUplot |
Date: |
Fri, 21 Aug 1998 18:04:08 -0300 |
>>>>> On Fri, 21 Aug 1998 14:13:41 -0600 (MDT),
>>>>> "David D. Clark" <address@hidden> said:
> Is there a way to pass a file name stored as a string to the gnuplot
> command "output"
> pfile="data.ps"
> gset output pfile
> this results in the error:
octave> pfile="data.ps"
octave> gset output pfile
octave>
gnuplot> set output pfile
> ^
> line 0: expecting filename
> any help would be appreciated
> Dave
First of all you have to quote the filename, and secondly you must use
eval since gnuplot cannot expand strings .
Use
octave> eval(["gset output \"" pfile "\""])
Mario