Am 19.11.2011 02:22, schrieb Faizal:
> Is there any octave program sample that I can use to start up in creating a
> binary trees for data structure. Thank you.
I am not absolutely sure what you are looking for exactly, you can build
tree structures in octave with cell arrays, like that
> From: Jordi Gutiérrez Hermoso <[hidden email]>
> To: Faizal <[hidden email]>
> Cc: [hidden email] > Sent: Saturday, November 19, 2011 8:15 PM
> Subject: Re: creating a binary trees
> On 18 November 2011 20:22, Faizal <[hidden email]> wrote:
>> Is there any octave program sample that I can use to start up in creating a
>> binary trees for data structure. Thank you.
> Octave's data structures are somewhat intentionally quite limited.
> What sort of task do you need a binary tree for?
> - Jordi G. H.
For example, cell array can be array of arrays - as many levels as desired, though in an old Email of mine I showed that list indexes gets truncated.
So cell array can be used to represent a binary tree. Or a struct - something like