User`s guide
Programming
21-25
save -v7 filename
You can still save to a MAT-file without using compression or Unicode encoding. In fact,
you will have to do this in order to create MAT-files that you can load into a MATLAB
Version 6 or earlier. To save to a MAT-file without compression or Unicode encoding,
type
save -v6 filename
To disable compression and Unicode encoding for all save operations in a MATLAB
session, open the MATLAB Preferences dialog, select General and then MAT-Files,
and then click the button labelled Ensure backward compatibility (-v6).
Compatibility Considerations
If you have code that uses any of these option switches with the save function, you will
need to modify that code to use the –v6 option instead.
Warning Generated by try-catch
To accommodate future changes in the MATLAB error handling capabilities, MathWorks
has added a new restriction to the single-line syntax of the try-catch block. In this
release, the following syntax operates as it did in previous releases, but now it also
generates the following warning message:
try try_statements, catch catch_statements, end
Warning: This try-catch syntax will continue to work in R2006b,
but may be illegal or may mean something different in future
releases of MATLAB.
To make this single-line try-catch work without warning in R2006b, you must insert a
separator character (comma, semicolon, or newline) immediately after the word catch
try try_statements, catch, catch_statements, end
As with previous releases, the recommended syntax for a try-catch block is as follows:
try
try_statements
catch
catch_statements