User`s guide
Language and Programming
6-9
Language and Programming
Abstract attribute for declaring MATLAB classes as abstract
Declare MATLAB classes as abstract by setting the class Abstract attribute. See
Defining Abstract Classes for more information.
Diagnostic message improvements when attempting to create an instance
of an abstract class
Attempting to instantiate an abstract class returns a list of abstract members and their
defining classes in the error diagnostic message. The meta.abstractDetails function finds
abstract members defined or inherited by abstract classes.
Handle and dynamicprops do not support the empty static method
For R2012b, the handle and dynamicprops classes no longer support the empty static
method. This change makes these classes consistent with all MATLAB abstract classes.
Compatibility Considerations
MATLAB software issues an error for calls to the empty static method from the handle
and dynamicprops classes:
% Will return errors
handle.empty
dynamicprops.empty
See Creating Empty Arrays for information on using empty.
Switch uses eq to compare enumerations
Switch statements use the enumeration eq method to compare the switch expression
with the case expression (see switch). In previous releases, switch used a special
comparison that required the result of both expressions to belong to the same
enumeration class. The result of the comparison is determined by the result of:
switch_experssion == case_expression