Simulate a model, place the
Simulink.SimulationOutput object in simOut, and
use the reportSimulationMetadataDiagnostics function to display errors
and warnings in the Diagnostic Viewer.
Create a single SimulationInput object for the model.
model = 'vdp';
in = Simulink.SimulationInput(model);
Create an array of SimulationInput objects by using the
for loop.
in(1:5) = in;
Simulate all the SimulationInput objects in the array to output
the indices of the models with errors or warnings. The output is returned in a single
Simulink.SimulationOutput object.
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.