1-Visitor
May 28, 2012
Solved
How to analyze nested objects?
- May 28, 2012
- 1 reply
- 2629 views
OK, so I need to check whether the object is acceptable for further actions which means:

Object is a matrix, all I care is that it has more than 1 row and more than 1 column (type 1).
Object is a vector (more than 1 row), its elements are type 1 objects of the same size (type 2).
Object is a vector, its elements are type 2 objects not only of the same size, but also all the type 1 objects within are of the same size (type 3).
In the same fashion we can define type 4, type 5 and so on indefinitely.
I hope you get the idea.
I'm pretty bad at recursion, but I tried, see project.xmcd .
EDIT: Corrected a mistype in the attached file. Still far from working I guess.

