Object Save and Load - MATLAB & Simulink (original) (raw)

Customize the object save and load process

MATLABĀ® provides default behavior for using theload and save functions with objects, but you can customize the process of serializing (saving) and deserializing (loading) objects using one of two approaches:

See When to Customize the Serialization Process for more information.

Classes

matlab.mixin.CustomElementSerialization Customize how objects are serialized and deserialized (Since R2024b)
matlab.serialization.ElementSerializationContent Representation of serialized object (Since R2024b)
matlab.serialization.SerializationContext Context in which objects are serialized (Since R2024b)

Functions

saveobj Customize save process for objects
loadobj Customize load process for objects

Topics

Default Behavior for save and load with Objects

Customize Object Serialization