displayNonScalarObject

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

Display format for non-scalar objects

Syntax

displayNonScalarObject(obj)

Description

displayNonScalarObject(obj) is called by the disp method when the object, obj, is nonscalar (prod(size(obj)) > 1)

The default display of a nonscalar object array 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. displayNonScalarObject shows only those properties with public GetAccess and Hidden set to false.

Override this method to customize the display a nonscalar object array.

Input Arguments

obj

Object array of a class derived from matlab.mixin.CustomDisplay

Attributes

Accessprotected

To learn about attributes of methods, see Method Attributes in the MATLAB® Object-Oriented Programming documentation.

Was this topic helpful?