Main Content

validate

Validate the contents of theSimulationInputobject,in

Syntax

Description

example

in.validatevalidates the changes made to the model through theSimulationInputobject. This method validates all the changes made to the model through theSimulationInputobject.

Examples

collapse all

This example modifies and validates the variable of the model through theSimulationInputobject.

Open the model.

openExample('simulink/OpenTheModelExample'); mdl ='ex_sldemo_househeat'; open_system(mdl);

创建一个SimulationInputobject for this model

in = Simulink.SimulationInput(mdl);

Modify a model parameter

in = in.setModelParameter('InvalidParamName','5');

Validate this change

in.validate

Version History

Introduced in R2017a