CustomDisplay 类定义了一个接口，可以用它来自定义 MATLAB 如何显示对象。有关该接口的综述，请参阅Custom Display Interface。
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.
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