Documentation

validate

Validate the contents of the SimulationInput object, in

Syntax

in.validate

Description

example

in.validate validates the changes made to the model through the SimulationInput object. This method validates all the changes made to the model through the SimulationInput object.

Examples

collapse all

This example modifies and validates the variable of the model through the SimulationInput object.

Open the model.

mdl = 'sldemo_househeat';
open_system(mdl);

Create a SimulationInput object for this model

in = Simulink.SimulationInput(mdl);

Modify a model parameter

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

Validate this change

in.validate

Introduced in R2017a

Was this topic helpful?