User`s guide

R2010b
12-12
Programming
arrayfun Accepts Array of Objects
The arrayfun function now accepts an array of objects as an input. The output can also be
a scalar object, as long as the UniformOutput flag is set to false.
Comparing Object Arrays that Contain NaNs
In previous versions of MATLAB, calling isequalwithequalnans to compare identical
arrays of objects that contain one or more NaN (Not a Number) values incorrectly
returned false. Similarly, calling isequal to compare identical arrays of objects that
contain NaNs incorrectly returned true.
In MATLAB version 7.11, these functions return the expected values (true for
isequalwithequalnans, and false for isequal) when used to compare object arrays.
Compatibility Considerations
Program code that compares object arrays that may contain NaNs should be examined to
ensure correct behavior.
Functions isa and islogical Now Consistent for Objects
In earlier releases of MATLAB, the following statements returned different results for
objects with a base class of logical:
isa(obj, 'logical')
islogical(obj)
In MATLAB version 7.11, both of these statements return true if the class of obj is
derived from logical, and false otherwise.
Compatibility Considerations
If you have program code that calls either isa or islogical on objects with a base class
of logical, it is advisable to verify that this new behavior does not adversely affect the
execution of the program.