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.Task class

Package: ModelAdvisor

Define custom tasks


The ModelAdvisor.Task class is a wrapper for a check so that you can access the check with the Model Advisor.

You can use one ModelAdvisor.Check object in multiple ModelAdvisor.Task objects, allowing you to place the same check in multiple locations in the Model Advisor tree. For example, Check for implicit signal resolution is displayed in the By Product > Simulink folder and in the By Task > Model Referencing folder in the Model Advisor tree.

When adding checks as tasks, the Model Advisor uses the task properties instead of the check properties, except for Visible and LicenseName.


ModelAdvisor.TaskDefine custom tasks


setCheckSpecify check used in task


DescriptionDescription of task
DisplayNameName of task
EnableIndicate if user can enable and disable task
IDIdentifier for task
LicenseNameProduct license names required to display and run task
MAObjModel Advisor object
ValueStatus of task
VisibleIndicate to display or hide task

Copy Semantics

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


MAT1 = ModelAdvisor.Task('com.mathworks.sample.TaskSample1');
MAT2 = ModelAdvisor.Task('com.mathworks.sample.TaskSample2');
MAT3 = ModelAdvisor.Task('com.mathworks.sample.TaskSample3');