end
end
function loadObjectImpl(obj,s,isInUse)
% Load child System objects
obj.child = matlab.System.loadObject(s.child);
% Load protected and private properties
obj.protectedprop = s.protectedprop;
obj.pdependentprop = s.pdependentprop;
% Load the state only if object is in use
if isInUse
obj.state = s.state;
end
% Call base class method to load public properties
[email protected](obj,s,isInUse);
end
end
end
See Also
loadObjectImpl | saveObjectImpl
See Also