matlab.mixin.CustomDisplay.displayScalarObject - Display format for scalar objects - MATLAB (original) (raw)
Main Content
Class: matlab.mixin.CustomDisplay
Namespace: matlab.mixin
Display format for scalar objects
Syntax
displayScalarObject(obj)
Description
displayScalarObject([obj](#mw%5F85eab85f-2e81-47f8-a487-a5947fd01dac))
is called by thedisp
method when the object, obj
, is scalar.
The default display of a scalar object consists of a header and a list of properties and their values. Properties are shown in the order they are defined in the class definition.displayScalarObject
shows only those properties with publicGetAccess
and Hidden
set tofalse
.
Override this method to customize the display of a scalar object.
Input Arguments
Scalar object to display. The class of obj
must be derived frommatlab.mixin.CustomDisplay
.
Examples
See Customize Display of Scalar Objects for a sample implementation of displayScalarObject
.
Version History
Introduced in R2013b