| MATLAB Central > MATLAB Newsreader > Tree data structure in MatLab |
|
|
|
Subject: Tree data structure in MatLab From: Yersinio Jimenez Date: 1 Nov, 2009 17:23:04 Message: 1 of 10 |
|
Hi every guys. |
|
Subject: Tree data structure in MatLab From: Rune Allnor Date: 1 Nov, 2009 17:47:35 Message: 2 of 10 |
|
On 1 Nov, 18:23, "Yersinio Jimenez" <yersin...@hotmail.com> wrote: |
|
are you looking for a structure? |
|
Subject: Tree data structure in MatLab From: Yersinio Jimenez Date: 12 Dec, 2009 00:14:19 Message: 4 of 10 |
|
No, i'm not talking about structs. A have already works with that and are two very differents things. |
|
Subject: Tree data structure in MatLab From: Yersinio Jimenez Date: 12 Dec, 2009 00:17:07 Message: 5 of 10 |
|
I will try with java tree data structure, but i belivie that it would have some implications in terms of performance. |
|
Subject: Tree data structure in MatLab From: Bruno Luong Date: 12 Dec, 2009 08:44:03 Message: 6 of 10 |
|
I would argue a CELL having nested cells having nested cells etc ... are tree. The different is inserting or removal a branch/element is a costly operation (since Matlab does not provide a notion of pointers). |
|
"Yersinio Jimenez" <yersinioj@hotmail.com> wrote in message <hckg5o$8t6$1@fred.mathworks.com>... |
|
Subject: Tree data structure in MatLab From: Derek O'Connor Date: 17 Jan, 2010 13:24:03 Message: 8 of 10 |
|
"Yersinio Jimenez" <yersinioj@hotmail.com> wrote in message <hckg5o$8t6$1@fred.mathworks.com>... |
|
Subject: Tree data structure in MatLab From: Joao Henriques Date: 6 Jul, 2010 21:09:05 Message: 9 of 10 |
|
Derek's answer is the right one for Matlab, it may be strange for someone with a different background (eg. C++, Java) but the only way to deal with this sort of data structures is to re-interpret them in terms of vectors or matrices. Sometimes it's not obvious how to do so, and the result is very inefficient and hard to maintain code because you're trying to hammer foreign concepts into ML! This may change as OOP matures within ML (but IMO it's not there right now). |
|
Subject: Tree data structure in MatLab From: LESTER GARCIA Date: 23 Nov, 2011 16:46:08 Message: 10 of 10 |
|
"Yersinio Jimenez" <yersinioj@hotmail.com> wrote in message <hckg5o$8t6$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| trees | LESTER GARCIA | 23 Nov, 2011 11:49:12 |
| parent pointers | Derek O'Connor | 17 Jan, 2010 08:29:06 |
| trees | Derek O'Connor | 17 Jan, 2010 08:29:06 |
| data structures | Derek O'Connor | 17 Jan, 2010 08:29:06 |
| tree | Yersinio Jimenez | 1 Nov, 2009 12:24:05 |
| data structures | Yersinio Jimenez | 1 Nov, 2009 12:24:04 |
Contact us at files@mathworks.com
