User`s guide
R2007a
20-30
try statements, catch statements, end
Warning: This try-catch syntax will continue to work in R2007a,
but may be illegal or may mean something different in future
releases of MATLAB.
As with previous releases, the recommended syntax for a try-catch block is as follows:
try
try_statements
catch
catch_statements
end
Note: Due to a bug in the R2007a release, the warning for a catch followed immediately
by a single term is thrown as an error, even though the text of the message says that it is
a warning.
Compatibility Considerations
Your M-file programs may generate the warning shown above if the correct syntax for
try and catch is not used.
save -regexp Saves to Correct Filename
In previous releases, the following command mistook the -regexp argument ([ab] in
the case shown below) to be the name of the file to save to:
save -regexp [ab]
In this release, the filename is correctly understood to be the default save filename,
matlab.mat, and any arguments that follow the -regexp flag and precede the next flag
are interpreted as patterns to be matched.
Functions Not Callable If in Directory Under Class Directory
M-files placed in a directory that is one or more levels beneath a MATLAB class directory
are not callable from that same directory. A MATLAB class directory contains methods of
a class and has a filename that begins with the @ character.