octave-maintainers
[Top][All Lists]
Advanced

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

unfolding structure names


From: CdeMills
Subject: unfolding structure names
Date: Fri, 30 Sep 2011 07:03:31 -0700 (PDT)

Hello,

I would like to make easier to obtain a representation of some complex
structure. Let's say that
a = struct('a', 1, 'b', 2)
a.c=struct('val', 42, 'sigma', 1e-4)
'a' is thus a structure containing many fields, including another structure.
How can I unfold it to construct 
- a list of names as
 'a', 'b', 'c.val', 'c.sigma'
- a vector which is the  concatenation of every numeric values ?
The idea is to construct an unique trajectory, such that all field names and
all values are visited exactly once and in the same order ?

Regards

Pascal

--
View this message in context: 
http://octave.1599824.n4.nabble.com/unfolding-structure-names-tp3859889p3859889.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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