Main Content


Class: matlab.mixin.CustomDisplay
Namespace: matlab.mixin

Display format for nonscalar objects




displayNonScalarObject(obj) is called by the disp method when obj is nonscalar (prod(size(obj)) > 1). Override this method to customize the display of a nonscalar object array.

The default display of a nonscalar object array consists of a header and a list of property names. The header shows the dimensions of the object array. The properties appear in the order defined in the class definition. displayNonScalarObject shows only those properties with GetAccess set to public and Hidden set to false.

Input Arguments

expand all

Nonscalar object array to display. The class of obj must be derived from matlab.mixin.CustomDisplay.



To learn about attributes of methods, see Method Attributes.


For an example of a class that implements displayNonScalarObject, see Customize Display of Object Arrays.

Version History

Introduced in R2013b