[Top][All Lists]

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

Re: plot to file from executable script -problem refined

From: Rafael Laboissiere
Subject: Re: plot to file from executable script -problem refined
Date: Wed, 30 Jan 2002 10:34:25 -0600

* Pieter Thysebaert <address@hidden> [2002-01-30 10:32]:

> I did not add gset output "output.eps" as a command, but rather
> filename="output.eps";
> gset output filename
> [...]
> However, gnuplot seems to choke on it:
> It says "filename expected", so I suppose octave is passing the variable name
> rather than the contents of it (=the filename).

It is not gnuplot that is choking on it, it is the Octave parser itself.

> Can I plot to a file if its name is to be determined at run-time ?

Sure you can.  Try:

    eval(sprintf("gset output \"%s\", filename))


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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