matlab.mixin.CustomCompactDisplayProvider Class
Namespace: matlab.mixin
Description
This class provides an interface for customizing the way MATLAB® represents objects using compact display. Compact display refers to a scenario in which an object array is held within a container (such as a structure, cell array, or table). For example, when an object array is held in a field of a structure, MATLAB can display the array only in a single line and within the limited character width available to that field.
To add the custom compact display functionality to your class, derive it from
matlab.mixin.CustomCompactDisplayProvider
.
classdef MyClass < matlab.mixin.CustomCompactDisplayProvider ... end
You can use matlab.mixin.CustomCompactDisplayProvider
to customize compact
display for two display layouts:
Single-line layout — The object array must be displayed in a single row. MATLAB uses this display layout when the object array is contained within a structure or cell array, or as a property of a MATLAB object.
Columnar layout — The object array must be displayed in multiple rows as part of column-oriented or tabular data. MATLAB uses this display layout when the object array is contained within a table variable.
Class Attributes
Abstract | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.