Default Save and Load Process for Objects - MATLAB & Simulink (original) (raw)

MATLABĀ® follows a default set of steps when serializing (saving) and deserializing (loading) objects. This topic describes the default steps MATLAB uses for classes that have not implemented customized serialization. For more information on customizing serialization, see When to Customize the Serialization Process.

Save and Load Functions

Use save and load to serialize and deserialize objects. These are the basic syntaxes.

save("filename","variablename") load("filename","variablename")

What Information Is Saved?

Serializing objects in MAT-files stores:

How Is the Property Data Loaded?

When deserializing objects from MAT-files, the load function restores the object using these steps:

See Also

save | load