Save System object in MAT file
s = saveObjectImpl(obj)
s = saveObjectImpl(obj)
specifies the System
object™ properties
and state values to be saved in a structure or MAT file. save
calls saveObject
,
which then calls saveObjectImpl
. To save a System
object in
generated code, the object must be unlocked and it cannot contain
or be a child object.
If you do not define a saveObjectImpl
method
for your System
object class, only public properties and properties
with the DiscreteState
attribute are saved.
To save any private or protected properties or state information,
you must define a saveObjectImpl
in your class definition
file.
End users can use load
, which calls loadObjectImpl
to
load a saved System
object into their workspace.
Save the state of an object only if the object is in use. When the user loads that saved object, it loads in that usage state.
To save child object information, use the associated saveObject
method
within the saveObjectImpl
method.
You must set Access = protected
for this
method.
|
System object |