이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
클래스의 객체 표시 방법 사용자 지정하기
MATLAB®이 명령 창에 클래스의 객체를 표시하는 방법 사용자 지정
CustomDisplay
클래스를 사용해, 인터페이스를 정의하고 MATLAB의 객체 표시 방법을 사용자 지정할 수 있습니다. 이 인터페이스에 대한 개요는 Custom Display Interface 항목을 참조하십시오. 그 외에도 CustomCompactDisplayProvider
클래스를 사용하여 컨테이너에 들어 있는 객체(예: 구조체, 테이블)의 표시 방법을 사용자 지정할 수 있습니다. 이 인터페이스에 대한 개요는 Custom Compact Display Interface 항목을 참조하십시오.
함수
details | 배열 세부 정보 표시 |
클래스
matlab.mixin.CustomDisplay | 객체 표시를 사용자 지정하는 인터페이스 |
matlab.mixin.util.PropertyGroup | Custom property list for object display |
matlab.mixin.CustomCompactDisplayProvider | Interface for customizing object display within containers (R2021b 이후) |
matlab.display.CompactDisplayRepresentation | Base class for representing compact display of object array (R2021b 이후) |
matlab.display.DisplayConfiguration | Describe display environment and settings (R2021b 이후) |
matlab.display.DimensionsAndClassNameRepresentation | Compact display representation using dimensions and class name (R2021b 이후) |
matlab.display.PlainTextRepresentation | Compact display representation using data in object array (R2021b 이후) |
도움말 항목
사용자 지정 표시 인터페이스 클래스와 메서드
- Custom Display Interface
TheCustomDisplay
class provides an API for customizing the display of objects of your class. - How CustomDisplay Works
MATLAB determines the state of an object and then calls specific methods for that state to display the object. - Class with Default Object Display
This example class customizes various aspects of object display. - Role of size Function in Custom Displays
MATLAB uses the size function to help determine the state of the object to display.
객체 표시를 사용자 지정하기 위한 특별한 기법
- Choose a Technique for Display Customization
You can customize object display based on the state of the object and you can change different parts of the display. - Customize Property Display
Change the order and number of properties displayed for an object of your class. - Customize Header, Property List, and Footer
Customize each of the three parts of the display — header, property groups, and footer. - Customize Display of Scalar Objects
Customize the display of scalar objects. - Customize Display of Object Arrays
Customize the display of nonscalar objects, including empty object arrays. - Customize Display for Heterogeneous Arrays
You can call only sealed methods on nonscalar heterogeneous arrays. - Overloading the disp Function
Overloading thedisp
function provides limited display customization.
간소 표시 사용자 지정하기
- Custom Compact Display Interface
Customize the representation of objects in compact display scenarios.