|
From: | John W. Eaton |
Subject: | getstruct, setstruct, etc. |
Date: | Wed, 21 Jul 2004 16:41:39 -0400 |
On 21-Jul-2004, Andy Adler <address@hidden> wrote: | QUESTION#2: | Matlab claims that GETFIELD is deprecated in favour of "dynamic | field names". Does anyone know what the *$#@ that is? octave:1> x.a = 1 x = { a = 1 } octave:2> f = "a" f = a octave:3> x.(f) ans = 1 Should also work for nested structures of arbitrary depth. jwe
[Prev in Thread] | Current Thread | [Next in Thread] |