The code analyzer checks your code for problems and recommends modifications. You can use the code analyzer to check your code interactively in the MATLAB® Editor while you work.
To verify that continuous code checking is enabled:
In MATLAB, select the Home tab and then click Preferences.
In the Preferences dialog box, select Code Analyzer.
In the Code Analyzer Preferences pane, verify that Enable integrated warning and error messages is selected.