User`s guide
R14SP3
23-20
Programming
New Functions
This version introduces the following new functions:
Function Description
arrayfun Applies a given function to each element of an array. This is
especially useful for arrays of structures.
exifread Reads EXIF information from JPEG and TIFF image files
structfun Applies a given function to each field of a structure
swapbytes Swaps byte ordering
typecast Converts data types without changing underlying data
Compatibility Considerations
A new function name can potentially introduce a backward incompatibility since it
can, under certain circumstances, override a variable with the same name as the new
function. This is especially true for names that are commonly used as variable names
in program code. Read the section Variable Names in the MATLAB Programming
documentation to find out how to avoid having these variables misinterpreted.
Modified Functions
The following functions were modified in this version:
Function Modified Behavior
cellfun Applies a given function to each cell of a cell array
datestr Seconds field truncates instead of rounding
error Saves stack information that you can retrieve using
lasterror
isfield Supports cell array input
lasterror Returns stack information on last error
rethrow Accepts stack information as input