This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

ModelAdvisor.Action class

Package: ModelAdvisor

Add actions to custom checks


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.


ModelAdvisor.ActionAdd actions to custom checks


setCallbackFcnSpecify action callback function


DescriptionMessage in Action box
NameAction button label

Copy Semantics

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


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