Release 11 New Features      

Upgrading from MATLAB 5.0 to MATLAB 5.3

This table describes some changes you can make to your code to eliminate error messages and warnings due to incompatible and noncompliant statements in MATLAB 5.0 code that you are upgrading to MATLAB 5.1.

Note If you are upgrading from MATLAB 5.0 to MATLAB 5.3, in addition to this section, you should read the previous two sections, called "Upgrading From MATLAB 5.2 to MATLAB 5.3"and "Upgrading from MATLAB 5.1 to MATLAB 5.3."

Function
Change
Action
find
find was modified for sparse row vectors. find(sparse_row) was a column in MATLAB 4 and MATLAB 5.0. In 5.1 it produces a row when the input is a row. All other cases still return columns.
Update code.
lasterr
In MATLAB 5.1, lasterr doesn't contain the ??? that prints out when you get an error. Some types of errors in MATLAB 5.0 erroneously contained ???.
None required.
plot
In MATLAB 5.0, plot incorrectly accepted arrays with more than two dimensions, but treated them as two-dimensional arrays. In 5.1, this causes an error.
Do not use arrays of more than two dimensions as arguments for plot.
Set functions:
intersect,
setdiff
, setxor, union, unique
These functions now error out if the inputs aren't vectors, and you aren't using the rows flag.
Update code if required.
size
An empty string created within a MEX-file is now of size 0,0, consistent with the rest of MATLAB. (This change occurred with MATLAB 5.1.)
Update code accordingly.



[ Previous | Next ]