matlab.mixin.CustomDisplay.displayNonScalarObject - Display format for nonscalar objects - MATLAB (original) (raw)

Main Content

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

Display format for nonscalar objects

Syntax

displayNonScalarObject(obj)

Description

displayNonScalarObject([obj](#mw%5F34241fd0-52db-47d2-94bf-b0506ff4b07c)) is called by thedisp 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 andHidden set to false.

Input Arguments

expand all

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

Examples

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

Version History

Introduced in R2013b