MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

3 For each message in the report, review the suggestion and your code. Click the line
number to open the file in the Editor at that line, and change the file based on the
message. Use the following general advice:



  • If you are unsure what a message means or what to change in the code, click the
    link in the message if one appears. For details, see “Check Code for Errors and
    Warnings” on page 24-6.

  • If the message does not contain a link, and you are unsure what a message means
    or what to do, search for related topics in the Help browser. For examples of
    messages and what to do about them, including specific changes to make for the
    example, lengthofline.m, see “Changing Code Based on Code Analyzer
    Messages” on page 24-44.

  • The messages do not provide perfect information about every situation and in
    some cases, you might not want to change anything based on the message. For
    details, see “Understand the Limitations of Code Analysis” on page 24-16.

  • If there are certain messages or types of messages you do not want to see, you
    can suppress them. For details, see “Adjust Code Analyzer Message Indicators and
    Messages” on page 24-11.
    4 After modifying the file, save it. Consider saving the file to a different name if you
    made significant changes that might introduce errors. Then you can refer to the


MATLAB Code Analyzer Report
Free download pdf