[Top][All Lists]

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

getstruct, setstruct, etc.

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:

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]