Skip to Main Content Skip to Search
Product Documentation

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 Inlineparameters to the objective, and specify the parameter value as on.

addParam(obj, 'InlineParams', 'on');

See Also

get_param

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS