help-octave
[Top][All Lists]
Advanced

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

Re: query related to gset output


From: avraham . rosenberg
Subject: Re: query related to gset output
Date: Fri, 20 Jun 2003 21:48:19 +0300 (IDT)

Hi,
I tried your suggestion. On my system (octave-2.1.48 on Debian 3.0 ver 1>
it required a slight modification to make it work.
Sample:
x=[1:8];
y=x .^2 -3.3 *x + 15;
gset terminal x11;
grid; plot(x,y);
a=strcat("\"","stat",num2str(3),".ps","\n"");
         ^^^^^                       ^^^^^^
eval(["gset output ",a]);
gset terminal postscript; replot;

->I got my plot in the file stat3.ps in the working directory

If I am not mistaken, the quotation marks can be omitted in the definition
of a, but then they have to be introduced in the next command:
eval(["gset output", \"a\"]> or something like that.

Cheers, Avraham

On Wed, 11 Jun 2003, David Bateman wrote:

> Try
>
> eval(['gset output ', a]);
>
> D.
>
>
> According to Umme Salma <address@hidden> (on 06/11/03):
> >
> > hi,
> > gset output 'stat.ps'
> >
> > the above statement saves the plot to a file named stat.ps
> >
> > suppose i need to have a file name which has to be generated & used at
> > runtime
> > say in my case
> > j=3
> > a =strcat('stat',num2str(j),'.ps');
> >
> > andthe value present in argument a should be my file name what is the
> > option?
> >
> > I tried using
> > gset output a
> > in this case it gives error
> > I tried using
> > gset output 'a'
> > in this case the file name will just be a.
> >
> > regards
> > salma
> >
> > **************************Disclaimer************************************
> >
> > Information contained in this E-MAIL being proprietary to Wipro Limited is
> > 'privileged' and 'confidential' and intended for use only by the individual
> >or entity to which it is addressed. You are notified that any use, copying
> > or dissemination of the information contained in the E-MAIL in any manner
> > whatsoever is strictly prohibited.
> >
> > ***************************************************************************
>
> --
> David Bateman                              address@hidden
> Motorola CRM                             +33 1 69 35 25 00 (Ph)
> Espace Technologique, Commune de St Aubin  +33 1 69 35 25 01 (Fax)
> 91193 Gif-Sur-Yvette FRANCE
>
> The information contained in this communication has been classified as:
>
> [x] General Business Information
> [ ] Motorola Internal Use Only
> [ ] Motorola Confidential Proprietary
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web:http://www.octave.org
> How to fund newprojects:http://www.octave.org/funding.html
> Subscription information:http://www.octave.org/archive.html
> -------------------------------------------------------------
>
>
>



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