User`s guide

R2012b
6-12
Function Recommended Modification
strread Replace all existing instances of strread with
textscan. For example, replace
[a,b,c] = strread(...) with
C = textscan(...)
[a,b,c] = deal(C{:})
Unlike strread, the textscan function
converts numeric values to the specified data
type, allowing preservation of integer types.
strvcat Replace all existing instances of strvcat with
char. Unlike strvcat, the char function does
not ignore empty strings.
textread Replace all existing instances of textread
with textscan, similar to strread. Open and
close files with fopen and fclose.
Conversion of Error and Warning Message Identifiers
For R2012b, error and warning message identifiers have changed in MATLAB.
Compatibility Considerations
If you have scripts or functions that use message identifiers that changed, you must
update the code to use the new identifiers. Typically, message identifiers are used to turn
off specific warning messages, or in code that uses a try/catch statement and performs an
action based on a specific error identifier.
For example, the MATLAB:uitable:InvalidParent identifier has changed
to MATLAB:uitable:ParentMustBeFigureOrUIContainer. If your code
checks for MATLAB:uitable:InvalidParent, you must update it to check for
MATLAB:uitable:ParentMustBeFigureOrUIContainer instead. For a mapping of
the new identifiers to the original identifiers, see Technical Support solution 1-ERAFNC.