Inspect System Object Code - MATLAB & Simulink (original) (raw)

View and navigate System object™ code using the Inspector.

The Inspector displays an outline of all elements in the System object code.

For example:

  1. Open an existing System object.
  2. In the MATLAB® toolstrip, in the System Object section, clickInspect.
  3. In the Inspector dialog box that opens, click the resetImpl method.
    Inspector contents
    The cursor in the MATLAB Editor window goes to the resetImpl method.
    resetImpl method

The Inspector provides warnings for legacy base classes, properties with legacy attributes, and redundant methods. When a System object contains legacy code, the Inspector displays an Update button that helps you replace or remove the legacy code.

Inspector dialog box contents with obsolete matlab.system.mixin.CustomIcon class

The warnings and Update button are not available in MATLAB Online.

When you click Update, the Inspector:

When the update modifies the System object code, a prompt lets you compare the updated code with the previous version.

See Also

sysobjupdate