removeInheritedCheck

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

Remove inherited checks

Syntax

removeInheritedCheck(obj, checkID)

Description

removeInheritedCheck(obj, checkID) removes an inherited check from the objective definition. Use this method when you create a new objective from an existing objective.

When the user selects multiple objectives, if another selected objective includes this check, the Code Generation Advisor displays the check.

Input Arguments

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

Examples

Remove the Identify questionable code instrumentation (data I/O) check from the objective.

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

)