[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: Re: gset output string??
From: |
Miquel Cabanas |
Subject: |
Re: Re: Re: gset output string?? |
Date: |
Fri, 05 Jul 2002 15:46:02 +0200 |
hi,
On 2002.07.05 14:42 Johan Ekh wrote:
gnuplot> set output test1.fig
^
line 0: expecting filename
gnuplot expects the filename quoted, i.e.
gset output "filename.ps"
In octave you should type (beware of escaped quotes),
> filename = "myfile.ps"
> a = sprintf("gset output \"%s\"", filename)
a = gset output "mypsfile.ps"
> eval(a)
> gshow output
output is sent to 'mypsfile.ps'
which could be simplified to,
> eval( sprintf("gset output \"%s\"", filename) )
Miquel
--
Miquel E Cabanas ------------------------------------------------------
SeRMN, Universitat Autonoma de Barcelona (address@hidden)
------------------------------------------o-oo--ooo---ooo--oo-o--------
-------------------------------------------------------------
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
-------------------------------------------------------------