Main Content

Customize Object Display for Classes

Customize how MATLAB® displays objects of your class in the command window

The CustomDisplay class defines an interface that you can use to customize how MATLAB displays objects. For an overview of the interface, see Custom Display Interface. In addition, the CustomCompactDisplayProvider class enables you to customize the display of objects in containers, such as structs and tables. For an overview of the interface, see Custom Compact Display Interface.


detailsDisplay array details


matlab.mixin.CustomDisplayInterface for customizing object display
matlab.mixin.util.PropertyGroupCustom property list for object display
matlab.mixin.CustomCompactDisplayProviderInterface for customizing object display within containers
matlab.display.CompactDisplayRepresentationBase class for representing compact display of object array
matlab.display.DisplayConfigurationDescribe display environment and settings
matlab.display.DimensionsAndClassNameRepresentationCompact display representation using dimensions and class name
matlab.display.PlainTextRepresentationCompact display representation using data in object array


Custom Display Interface Class and Methods

Specific Techniques for Customizing Object Display

Customizing Compact Displays