[Top][All Lists]

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

Dynamic access to data structure

From: Marco Canini
Subject: Dynamic access to data structure
Date: 31 May 2003 19:13:56 +0200

I need help in finding a way to access to data structure members
What i mean is:
given a structure like this
a =
  b = 1
  c = 2

i want to get/set a member which name is contained in a string, say
d = "b"

i would like to know if there's something like

struct_set_member(a, d, 3)


struct_get_member(a, d)
ans = 1

I really need a solution to this problem.
Thanks in advice.

Marco Canini <address@hidden>

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]