addParam

Class: rtw.codegenObjectives.Objective
Package: rtw.codegenObjectives

Add parameters

Syntax

addParam(obj, paramName, value)

Description

addParam(obj, paramName, value) adds a parameter to the objective, and defines the value of the parameter that the Code Generation Advisor verifies in Check model configuration settings against code generation objectives.

Input Arguments

objHandle to a code generation objective object previously created.
paramNameParameter that you add to the objective.
valueValue of the parameter.

Examples

Add DefaultParameterBehavior to the objective, and specify the parameter value as Inlined.

addParam(obj, 'DefaultParameterBehavior', 'Inlined');