help-octave
[Top][All Lists]
Advanced

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

Re: gset label VAR


From: Dave Cottingham
Subject: Re: gset label VAR
Date: Tue, 14 May 2002 08:45:55 -0400 (EDT)

When all else fails, use eval.  Try something like:

eval(sprintf("gset label \"%s\" at graph 0.05,0.95 left\n", str_label));

 - Dave Cottingham

> Resent-Date: Tue, 14 May 2002 07:22:36 -0500
> X-Authentication-Warning: bevo.che.wisc.edu: list set sender to 
> address@hidden using -f
> Date: Tue, 14 May 2002 17:21:55 +0200
> From: Jan Vermaete <address@hidden>
> Organization: M-TEC WIRELESS N.V.
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020502
> X-Accept-Language: en-us, en
> MIME-Version: 1.0
> To: address@hidden
> Subject: gset label VAR
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
> Resent-From: address@hidden
> X-Mailing-List: <address@hidden> 
> X-Loop: address@hidden
> List-Post: <mailto:address@hidden>
> List-Help: <mailto:address@hidden>
> List-Subscribe: <mailto:address@hidden>
> List-Unsubscribe: <mailto:address@hidden>
> Precedence: list
> Resent-Sender: address@hidden
> Errors-To: address@hidden
> 
> Following code doesn't work
> 
> N = 10
> str_label=printf("\"N is:\" %d", N); % no prob
> gset label str_label  at graph 0.05,0.95 left ; % ERROR
> % strlabel is not expanded, who can i fix this?
> gplot 0 % dispay only the label(s)
> 
> 
> The fault is that the variable "str_label" is not expanded.  Who can i 
> force octave to put the content of the variable there.
> 
> Thanks
> 
> -- 
> Jan Vermaete
> R&D Engineer
> M-TEC WIRELESS
> address@hidden
> Visit us at: www.mtecwireless.com
> -------------------------------------------------------------------------
> M-TEC WIRELESS, member of the M-TEC GROUP
> Designing Network Solutions, for People, by People.
> Tel. +32 (0)15 63 21 00 - Fax. +32 (0)15 63 21 11
> Visit our website at: http://www.mtecgroup.com/
> --------------------------------------------------------------------------
> 
> 
> 
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------



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