호환성을 위해 클래스 설계하기
버전 간 호환성을 유지하기 위해 클래스를 사용자 지정
별칭을 사용하여 기존 클래스의 이름을 변경합니다. 서로 다른 클래스 정의에 저장된 객체 간 호환성을 유지하기 위해 저장 및 불러오기에 대한 디폴트 프로세스를 사용자 지정합니다.
클래스
matlab.alias.AliasFileManager | Create and manage class alias definitions (R2021b 이후) |
matlab.mixin.CustomElementSerialization | Customize how objects are serialized and deserialized (R2024b 이후) |
matlab.serialization.ElementSerializationContent | Representation of serialized object (R2024b 이후) |
matlab.serialization.SerializationContext | Context in which objects are serialized (R2024b 이후) |
도움말 항목
클래스 별칭 생성 및 관리하기
- Creating and Managing Class Aliases
Rename existing classes while maintaining backward compatibility.
객체 직렬화 사용자 지정
- 객체의 저장 및 불러오기에 대한 디폴트 프로세스
MATLAB®은 객체를 직렬화(저장)하고 역직렬화(불러오기)할 때 몇 가지 기본 지침을 따릅니다. - When to Customize the Serialization Process
Modify the save and load process for objects. - Maintain Backward and Forward Compatibility Between Class Definitions
Modify the save and load process to provide class version compatibility.