help-octave
[Top][All Lists]
Advanced

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

Re: Getting the name of a variable


From: Paul Kienzle
Subject: Re: Getting the name of a variable
Date: Tue, 7 Sep 2004 19:37:24 -0400

This is wrapped in the function inputname(i) in octave-forge (for compatibility)

- Paul

On Sep 7, 2004, at 8:09 AM, Etienne Grossmann wrote:

   function s = tar(varargin)

   ...

   s.(deblank(argn(i,:))) = varargin{i};

deblank(argn(i,:)) is a string containing the name of the i'th
argument.

# Is there a way to implement GETNAME(), which takes a parameter or variable
# and returns it's name? Any ideas how this could be done?



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