From help-octave-request at bevo dot che dot wisc dot edu Thu Jan 8 08:34:02 2004 Subject: Re: gset output-command From: Geraint Paul Bevan To: Michel CC: Octave-help Date: Thu, 08 Jan 2004 14:32:47 +0000 -----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 -------------------------------------------------------------