|
From: | Bill Denney |
Subject: | Re: Trees (Nested Cell Array) in Octave. |
Date: | Tue, 03 Oct 2006 07:56:27 -0400 |
User-agent: | Thunderbird 1.5.0.7 (Windows/20060909) |
Muthiah Annamalai wrote:
Hello there,I am presently using a nested-cell array x={1 { 2 3} {4 { 5 6} } }; to represent atree structure below. -1 |-2 |-3 -|-4 |-5 |-6 Is there any other way using(excluding lists where you cannot do this ) other Octave constructs?
I generally use a structure with something like tree.data = whatever this node has tree.child{:} = child nodes Bill
[Prev in Thread] | Current Thread | [Next in Thread] |