Main Content

displayEmptyObject

Class: matlab.mixin.CustomDisplay
Package: matlab.mixin

Display for empty object arrays

Syntax

displayEmptyObject(obj)

Description

displayEmptyObject(obj) is called by disp when the object, obj, is empty. An object array is empty if one or more of its dimensions are zero. An empty object array is never scalar.

The default display of an empty object consists of a header and a list of property names. The header consists of the object's dimensions and the properties are shown in the order defined in the class definition. displayEmptyObject shows only those properties with public GetAccess and Hidden set to false.

Override this method to customize the appearance of an empty object array.

Input Arguments

obj

Object of a class derived from matlab.mixin.CustomDisplay

Attributes

Accessprotected

To learn about attributes of methods, see Method Attributes.