help-octave
[Top][All Lists]
Advanced

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

Re: gset output-command


From: Geraint Paul Bevan
Subject: Re: gset output-command
Date: Thu, 08 Jan 2004 14:32:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031105 Thunderbird/0.3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michel wrote on 01/08/04 14:24:
| Hey,
|
| I'm trying to write a simple m-file with wich I can save plots (also if
| I rotated them). It works, but I can't seem
| to use a string-variable for teh file-name?? Can't I specify a variable?
| Is it just passed on to gnuplot?
|
| gset output filename
|

You can use eval and sprintf to pass a variable's value to gnuplot:
eval (sprintf ("gset output '%s'", filename))


- --
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iEYEARECAAYFAj/9ag8ACgkQcXV3N50QmNMbRQCfV8ITCx6TEmGjVKJRA+LwZOy2
YnoAn0W4LmQgwQw/vCXFgWrpGhsRmOs+
=xq5+
-----END PGP SIGNATURE-----



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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