Main Content

addProcedure

Add subprocedure to procedure

Description

addProcedure(ProcedureObj1, ProcedureObj2) adds a procedure, specified by ProcedureObj2, to the procedure ProcedureObj1. ProcedureObj2 and ProcedureObj1 are ModelAdvisor.Procedure objects. Add additional procedures to organize checks by functionality or usage.

Examples

collapse all

  1. Create a ModelAdvisor.Procedure object named MAP.

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

  2. Create three subprocedures.

    MAP1=ModelAdvisor.Procedure('com.mathworks.sample.procedure1');
    MAP2=ModelAdvisor.Procedure('com.mathworks.sample.procedure2');
    MAP3=ModelAdvisor.Procedure('com.mathworks.sample.procedure3');
    
  3. Add three procedures to MAP.

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

Input Arguments

collapse all

Procedure that you want to add a procedure to specified as a ModelAdvisor.Procedure object.

Sub-procedure that you want to add to a procedure to specified as a ModelAdvisor.Procedure object.

Version History

Introduced in R2006a