Skip to Main Content Skip to Search
Product Documentation

setObjectiveName - Class: rtw.codegenObjectives.Objective
Package: rtw.codegenObjectives

Specify objective name

Syntax

setObjectiveName(obj, objName)

Description

setObjectiveName(obj, objName) specifies a name for the objective. The Configuration Set Objectives dialog box displays the name of the objective.

Input Arguments

objHandle to a code generation objective object previously created.
objNameOptional string that indicates the name of the objective. If you do not specify an objective name, the Configuration Set Objectives dialog box displays the objective ID for the objective name.

Examples

Name the objective Reduce RAM Example:

setObjectiveName(obj, 'Reduce RAM Example');

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