addProcedure

Class: ModelAdvisor.Procedure
Package: ModelAdvisor

Add subprocedure to procedure

Syntax

addProcedure(procedure1_obj, procedure2_obj)

Description

addProcedure(procedure1_obj, procedure2_obj) adds a procedure, specified by procedure2_obj, to the procedure procedure1_obj. procedure2_obj and procedure1_obj are instantiations of the ModelAdvisor.Procedure class.

Examples

Add three procedures to MAP.

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

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

addProcedure(MAP, MAP1);
addProcedure(MAP, MAP2);
addProcedure(MAP, MAP3);
Was this topic helpful?