Enumerations: Difference between revisions

Line 587:
 
 
=={{header|MATLAB}} / {{header|Octave}}==
 
Enumeration is done by creating a cell array (a.k.a set) of objects, where the numeral of the object is its index in the 1-based cell array. The cell array structure can contain any type of data structure including other cell arrays, and all members don't have to be the same data type.
Anonymous user