help-octave
[Top][All Lists]
Advanced

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

Re: Trees (Nested Cell Array) in Octave.


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 a
tree 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


reply via email to

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