This example shows how to use the fetchOutputs
method on an array of future
objects to retrieve a
Simulink.SimulationOutput
array.
This example runs several simulations of the vdp
model, varying the
value of the gain Mu.
Open the model and define a vector of Mu
values.
Using Mu_Values
, initialize an array of
Simulink.SimulationInput
objects. To preallocate the array, a loop
index is made to start from the largest
value.
Simulate the model using parsim
. Set to
'RunInBackground
' to enable the use of command prompt, while
simulations are running.
Use the fetchOutputs
method on
Future
simOut =
1x4 Simulink.SimulationOutput array