The code compatibility report contains information to help you
upgrade your code to a new version of MATLAB. It contains these sections.
Syntax Errors — Table with details about syntax
errors. For example, Using ~ to ignore a value is not
permitted in this context. Syntax errors result in
nonrunnable code and, while they are not introduced with a new version
of MATLAB, syntax errors impact compatibility analysis.
The table includes this information.
Report Column | Description |
---|
Occurrences | Total number of syntax errors in file. |
Filename | Name of file that contains syntax errors. |
Functionality that has been removed — Table with
details about functionality that is being used in the analyzed code and
that has been removed. For example, 'wavfinfo' has been
removed. Use 'AUDIOINFO' instead.
The table includes this information.
Report Column | Description |
---|
Description | Description of check. Description is same
as code analyzer message. |
Documentation | Link to more information in
documentation. |
Removed In | The release in which the functionality was
removed. |
Filename | Name of file that contains flagged check. |
Line | Line number indicating location in file of
flagged check. |
Functionality that has changed behavior — Table
with details about functionality that is being used in the analyzed code
and that has changed behavior. For example, 'legend' has
changed and might interpret the name of an argument as a legend
property instead of a label. To include a label with the same name
as a legend property, specify the labels using a cell array or
string array. Refer to the documentation for a list of affected
property names.
The table includes this information.
Report Column | Description |
---|
Description | Description of check. Description is same
as code analyzer message. |
Documentation | Link to more information in
documentation. |
Affects Code Written Before | The release in which the functionality was
changed. |
Filename | Name of file that contains flagged check. |
Line | Line number indicating location in file of
flagged check. |
Functionality that will be removed — Table with
details about functionality that is being used in the analyzed code and
that will be removed in a future release. For example,
'aviinfo' will be removed in a future release. Use
'VideoReader' instead.
The table includes this information.
Report Column | Description |
---|
Description | Description of check. Description is same
as code analyzer message. |
Documentation | Link to more information in
documentation. |
Filename | Name of file that contains flagged check. |
Line | Line number indicating location in file of
flagged check. |
Functionality that will change behavior — Table
with details about functionality that is being used in the analyzed code
and that will change behavior in a future release. For example,
'interp1(...,'cubic')' will change in a future release to
perform cubic convolution. To continue using shape-preserving
piecewise cubic interpolation, use 'interp1(...,'pchip')'
instead.
The table includes the same columns as the Functionality
that will be removed section.
Functionality that is not recommended — Table
with opportunities to improve your code. For example,
Programmatic use of DISPLAY is not recommended. Use DISP
or FPRINTF instead.
The table includes this information.
Report Column | Description |
---|
Description | Description of check. Description is same
as code analyzer message. |
Documentation | Link to more information in
documentation. |
Filename | Name of file that contains flagged check. |
Line | Line number indicating location in file of
flagged check. |
Suppression | Whether and how this check is suppressed in the
Editor. A value of None
indicates that the check is not suppressed. |
Full list of checks performed — Table with
information about the checks performed on the specified code. It
includes the following information.
Report Column | Description |
---|
Occurrences | In analyzed code, total number of
occurrences where a particular check is
flagged. |
Files | In the analyzed code, number of files where
a particular check is flagged. |
Description | Description of check. For example,
Use a newline, semicolon, or comma
before this statement or
STRMATCH is not recommended. Use STRNCMP
or VALIDATESTRING instead. Description
is same as code analyzer message. |
Severity | Severity of check. For example, Error or Warning . Errors might
indicate syntax errors or use of functionality
that is no longer supported. Warnings might
indicate opportunities to improve your
code. |
Identifier | Identifier for MATLAB code analyzer
messages. |
Documentation | Link to more information in
documentation. |
Full list of files analyzed — List of files that
MATLAB analyzed for code compatibility.