MATLAB Help Center
Validate contents of SimulationInput object
SimulationInput
validate(simIn)
validate(simIn) validates the changes made to the model through the SimulationInput object simIn.
simIn
example
collapse all
Configure a Simulink.SimulationInput object with modifications to make in a model for a simulation then validate the object.
Simulink.SimulationInput
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.
setModelParameter
simIn = setModelParameter(simIn,'InvalidParamName','5');
Validate the Simulink.SimulationInput object.
Simulation inputs and configuration, specified as a Simulink.SimulationInput object.
Introduced in R2017a
sim
parsim
batchsim
applyToModel
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office