validate - Validate contents of SimulationInput

  object - MATLAB ([original](https://www.mathworks.com/help/simulink/slref/simulink.simulationinput.validate.html)) ([raw](?raw))

Main Content

Validate contents of SimulationInput object

Syntax

Description

validate([simIn](#mw%5F20578cf5-ce2f-49d0-bab2-055309f0f874)) validates the changes made to the model through the SimulationInput objectsimIn.

example

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 thesetModelParameter function.

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

Validate the Simulink.SimulationInput object.

Input Arguments

collapse all

Simulation inputs and configuration, specified as aSimulink.SimulationInput object.

Version History

Introduced in R2017a