Main Content

ModelAdvisor.Procedure

R2026b

Custom procedures for display in Model Advisor tree

Description

Use ModelAdvisor.Procedure to define a custom procedure that appears in the Model Advisor tree.

Creation

Description

procedure = ModelAdvisor.Procedure(procedureID) creates a procedure object for display in Model Advisor tree. The procedureID specifies a unique identifier for the procedure that must remain constant.

example

Input Arguments

expand all

Unique identifier for the Model Advisor procedure.

Data Types: char | string

Output Arguments

expand all

Procedure containing steps or check IDs to display in the Model Advisor tree, returned as a ModelAdvisor.Procedure object.

Object Functions

addProcedureAdd subprocedure to procedure in Model Advisor tree
addTaskAdd task to procedure in Model Advisor tree

Examples

collapse all

Add a procedure to a Model Advisor tree.

Create a ModelAdvisor.Procedure object named MAP.

MAP = ModelAdvisor.Procedure("com.mathworks.sample.ProcedureSample");

Create three subprocedures.

MAP1 = ModelAdvisor.Procedure("com.mathworks.sample.procedure1");
MAP2 = ModelAdvisor.Procedure("com.mathworks.sample.procedure2");
MAP3 = ModelAdvisor.Procedure("com.mathworks.sample.procedure3");

Add these three sub procedures to MAP.

addProcedure(MAP,MAP1);
addProcedure(MAP,MAP2);
addProcedure(MAP,MAP3);

Version History

Introduced in R2006a