Class Name
Documentation
Intended Use
struct
“Structures”
• Fields store arrays of varying classes and sizes.
• Access one or all fields/indices in single operation.
• Field names identify contents.
• Method of passing function arguments.
• Use in comma-separated lists on page 2-79.
• More memory required for overhead
cell
“Cell Arrays”
• Cells store arrays of varying classes and sizes.
• Allows freedom to package data as you want.
• Manipulation of elements is similar to numeric or logical arrays.
• Method of passing function arguments.
• Use in comma-separated lists.
• More memory required for overhead
See Also
More About
•
“Valid Combinations of Unlike Classes” on page 15-2
3 Overview of MATLAB Classes
3-4
Documentation
Intended Use
struct
“Structures”
• Fields store arrays of varying classes and sizes.
• Access one or all fields/indices in single operation.
• Field names identify contents.
• Method of passing function arguments.
• Use in comma-separated lists on page 2-79.
• More memory required for overhead
cell
“Cell Arrays”
• Cells store arrays of varying classes and sizes.
• Allows freedom to package data as you want.
• Manipulation of elements is similar to numeric or logical arrays.
• Method of passing function arguments.
• Use in comma-separated lists.
• More memory required for overhead
See Also
More About
•
“Valid Combinations of Unlike Classes” on page 15-2
3 Overview of MATLAB Classes
3-4
