Main Content

ModelAdvisor.Action Class

Namespace: ModelAdvisor
Superclasses:

Add actions to custom checks

Description

Instances of this class define actions you take when the Model Advisor checks do not pass. Users access actions by clicking the Action button that you define in the Model Advisor window.

Creation

Description

action_obj = ModelAdvisor.Action creates a handle to an action object.

Note

  • Include an action definition in a check definition.

  • Each check can contain only one action.

Methods

setCallbackFcnSpecify action callback function

Properties

DescriptionMessage in Action box
NameAction button label

Copy Semantics

Handle. To learn how this impacts your use of the class, see Copying Objects in the MATLAB® Programming Fundamentals documentation.

Examples

% define action (fix) operation
myAction = ModelAdvisor.Action;
myAction.Name='Fix block fonts';
myAction.Description=...
   'Click the button to update all blocks with specified font';