MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
original file, if needed, to resolve problems with the updated file. Use the
Compare button on the Editor or Live Editor tab to help you identify the changes
you made to the file. For more information, see “Compare and Merge Text”.
5 Run and debug the file or files again to be sure that you have not introduced any
inadvertent errors.
6 If the report is displaying, click Rerun This Report to update the report based on
the changes you made to the file. Ensure that the messages are gone, based on the
changes you made to the files. To rerun the report in MATLAB Online, in the Current
Folder browser, click , and then select Reports > Code Analyzer Report.

Changing Code Based on Code Analyzer Messages


For information on how to correct the potential problems presented in Code Analyzer
messages, use the following resources:


  • Open the file in the Editor and click the Details button in the tooltip, as shown in the
    image following this list. An extended message opens. However, not all messages have
    extended messages.

  • Use the Help browser Search pane to find documentation about terms presented in
    the messages.


The following image shows a tooltip with a Details button. The orange line under the
equals (=) sign indicates a tooltip displays if you hover over the equals sign. The orange
highlighting indicates that an automatic fix is available.

24 Coding and Productivity Tips

Free download pdf