Customize Object Display for Classes
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
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.
|Interface for customizing object display|
|Custom property list for object display|
|Interface for customizing object display within containers|
|Base class for representing compact display of object array|
|Describe display environment and settings|
|Compact display representation using dimensions and class name|
|Compact display representation using data in object array|
Custom Display Interface Class and Methods
CustomDisplay class provides an API for customizing the display of objects of your class.
MATLAB determines the state of an object and then calls specific methods for that state to display the object.
This example class customizes various aspects of object display.
MATLAB uses the size function to help determine the state of the object to display.
Specific Techniques for Customizing Object Display
You can customize object display based on the state of the object and you can change different parts of the display.
Change the order and number of properties displayed for an object of your class.
Customize each of the three parts of the display — header, property groups, and footer.
Customize the display of scalar objects.
Customize the display of nonscalar objects, including empty object arrays.
You can call only sealed methods on nonscalar heterogeneous arrays.
disp function provides limited display
Customizing Compact Displays
Customize the representation of objects in compact display scenarios.