removeInheritedParam

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

Remove inherited parameters

Syntax

removeInheritedParam(obj, paramName)

Description

removeInheritedParam(obj, paramName) removes an inherited parameter from this objective. Use this method when you create a new objective from an existing objective.

When the user selects multiple objectives, if another objective includes the parameter, the Code Generation Advisor reviews the parameter value using Check model configuration settings against code generation objectives.

Input Arguments

objHandle to a code generation objective object previously created.
paramNameParameter that you want to remove from the objective.

Examples

Remove DefaultParameterBehavior from the objective.

removeInheritedParam(obj, 'DefaultParameterBehavior');