addCheck

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

Add checks

Syntax

addCheck(obj, checkID)

Description

addCheck(obj, checkID) includes the check, checkID, in the Code Generation Advisor. When a user selects the objective, the Code Generation Advisor includes the check, unless another objective with a higher priority excludes the check.

Input Arguments

objHandle to a code generation objective object previously created.
checkIDUnique identifier of the check that you add to the new objective.

Examples

Add the Identify questionable code instrumentation (data I/O) check to the objective.

addCheck(obj, 'mathworks.codegen.CodeInstrumentation');