This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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