User`s guide
R2010b
12-18
that the property was missing. In this case, MATLAB did not build a struct to pass to
loadobj. MATLAB now returns a struct in this case.
Compatibility Considerations
If you rely on the following situation not returning a struct to loadobj, you need to
update your code:
• You saved an object using the save command
• This object had a property that was set to the default value defined by the class at the
time of saving
• he property set to its default value at save time is subsequently removed from the
class definition
• You load the property and expect the load operation to return an object (it should
return a struct because the class definition has changed in a way the load cannot
create the object).
• Your loadobj method is not prepared to use the returned struct to create an object
You must implement a loadobj method to recreate the object using the current class
definition.
See Saving and Loading Objects for more information.