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 character vector 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');