modifyInheritedParam

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

Modify inherited parameter values

Syntax

modifyInheritedParam(obj, paramName, value)

Description

modifyInheritedParam(obj, paramName, value) changes the value of an inherited parameter that the Code Generation Advisor verifies in Check model configuration settings against code generation objectives. Use this method when you create a new objective from an existing objective.

Input Arguments

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

Examples

Change the value of DefaultParameterBehavior to Tunable in the objective.

modifyInheritedParam(obj, 'DefaultParameterBehavior', 'Tunable');