Main Content

setInputParameters

Specify input parameters

Description

Use the success = setInputParameters(ma, checkID, InputParameters) function to specify input parameters for a Model Advisor check.

This function enables you to access custom checks that you create using Simulink® Check™. For more information, see Define Custom Model Advisor Checks (Simulink Check) .

Input Arguments

collapse all

Simulink.ModelAdvisor object for which to specify the input parameters for the specific Model Advisor check.

Model Advisor check ID to which the input parameters apply. If you use this method inside a current active check function, you can omit this argument.

Example: 'mathworks.design.UnconnectedLinesPorts'

Cell array that contains the ModelAdvisor.InputParameter (Simulink Check) objects for a Model Advisor check.

Output Arguments

collapse all

Boolean value that indicates whether the Model Advisor specified the input parameters. A value of 1 indicates that the Model Advisor successfully specified the input parameters for the check. A value of 0 indicates that the Model Advisor did not specify the input parameters.

Version History

Introduced in R2006a