Main Content

validate

Validate contents of SimulationInput object

Description

example

validate(simIn) validates the changes made to the model through the SimulationInput object simIn.

Examples

collapse all

Configure a Simulink.SimulationInput object with modifications to make in a model for a simulation then validate the object.

Open the model.

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

Create a SimulationInput object for this model

simIn = Simulink.SimulationInput(mdl);

Specify the value for an invalid model parameter using the setModelParameter function.

simIn = setModelParameter(simIn,'InvalidParamName','5');

Validate the Simulink.SimulationInput object.

validate(simIn)

Input Arguments

collapse all

Simulation inputs and configuration, specified as a Simulink.SimulationInput object.

Version History

Introduced in R2017a