Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

객체 배열을 생성하고 사용하기

객체 배열의 생성과 결합(Concatenate). 이종 배열

객체 배열을 생성하고, 배열에서 객체와 해당 속성을 참조하며, 이종(혼합된 클래스) 배열의 구성을 지원하는 클래스 계층 구조를 설계합니다.

함수

empty지정된 클래스의 빈 배열 만들기

클래스

matlab.mixin.Heterogeneous이종 배열(Heterogeneous Array) 구성을 위한 슈퍼클래스

도움말 항목

객체 배열을 만들고 액세스하기

배열 결합하기

클래스 변환

  • Implicit Class Conversion
    MATLAB can implicitly convert objects to a different class for concatenation, subscripted assignment, property validation, and argument validation.
  • Object Converters
    You can convert an object of one class to an object of another class.

이종 배열

  • Designing Heterogeneous Class Hierarchies
    Heterogeneous arrays can contain objects of different class, but all objects in the array must derive from a common superclass.
  • Heterogeneous Array Constructors
    The class of a heterogeneous object array can change as you add array elements of different classes. You must ensure that constructors return objects that are the same class as the class defining the constructor.