This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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.