User`s guide

Programming
19-23
New Split String Functionality in regexp
Using the regular expressions function regexp, you can now split an input string into
sections by specifying the new 'split' option when calling regexp:
s1 = ['Use REGEXP to split ^this string into ' ...
'several ^individual pieces'];
s2 = regexp(s1, '\^', 'split');
s2(:)
ans =
'Use REGEXP to split '
'this string into several '
'individual pieces'
The split option returns those parts of the input string that are delimited by those
substrings returned when using the regexp 'match' option.
Changes Related to Error Handling
New Error Handling Mechanism
MATLAB extends its error-handling capabilities with the new MException class to
provide you with a more secure and extensible system for throwing and responding
to errors. Read about this new feature in the Error Handling section of the MATLAB
Programming documentation and in related function reference pages such as
MException.
This feature extends the error-handling capabilities available in earlier releases, but does
not replace that functionality. Your M-file programs will continue to function the same
when using Version 7.5.
New Syntax for catch Function
As part of new error-handling mechanism, the catch function has a new, optional syntax
as shown here in a try-catch statement:
try
% Try to execute this block of code. Go to 'catch' on error
- code that may error -
catch ME