[Top][All Lists]

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

Re: Dynamic access to data structure

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)


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 (

Paul Kienzle

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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