matlab.mixin.CustomDisplay.displayEmptyObject - Display format for empty object arrays - MATLAB (original) (raw)
Main Content
Class: matlab.mixin.CustomDisplay
Namespace: matlab.mixin
Display format for empty object arrays
Syntax
displayEmptyObject(obj)
Description
displayEmptyObject([obj](#mw%5Fcdfd2403-109d-49cc-a755-8f2b23444847))
is called bydisp
when obj
is an empty array. An object array is empty if one or more of its dimensions are zero. Override this method to customize the display of an empty object array.
The default display of an empty object consists of a header and a list of property names. The header shows the object's dimensions, and the properties are listed in the order defined in the class definition. displayEmptyObject
shows only those properties with GetAccess
set to public
andHidden
set to false
.
An empty object array is not scalar. MATLABĀ® does not call displayScalarObject
on empty arrays regardless of their dimensions.
Input Arguments
Empty object array to display. The class of obj
must be derived from matlab.mixin.CustomDisplay
.
Examples
For an example of a class that implements displayEmptyObject
, see Customize Display of Object Arrays.
Version History
Introduced in R2013b