|
From: | Paul Kienzle |
Subject: | Re: Dynamic access to data structure |
Date: | Sat, 31 May 2003 15:15:18 -0400 |
User-agent: | Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3) Gecko/20030312 |
Marco Canini wrote:
i would like to know if there's something like struct_set_member(a, d, 3) and struct_get_member(a, d) ans = 3
On newer octave (>2.1.40?) , you can use a.(d), where d is a string. On older octave, you can use getfield/setfield from octave-forge (http://octave.sf.net). Paul Kienzle address@hidden ------------------------------------------------------------- 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 -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |