simOut = fetchOutputs(Future)
fetches the output from an array of Simulink.Simulation.Future objects,
Future, after each element of Future is in a
'finished' state. fetchOutputs returns an array of
Simulink.SimulationOutput objects.
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.
for i = MuVal_length:-1:1
in(i) = Simulink.SimulationInput('vdp');
in(i) = in(i).setBlockParameter('vdp/Mu',...'Gain',num2str(Mu_Values(i)));
end
Simulate the model using parsim. Set to
'RunInBackground' to enable the use of command prompt, while
simulations are running.
Array of Simulink.SimulationOutput objects that contain all of
the logged simulation results. The size of the array is equal to the size of the array
of Simulink.SimulationInput objects.
All simulation outputs (logged time, states, and signals) are returned in a single
Simulink.SimulationOutput object. You define the model time,
states, and output that are logged using the Data Import/Export
pane of the Model Configuration Parameters dialog box. You can log signals using blocks
such as the To Workspace and Scope blocks. The
Signal & Scope Manager tool can directly log signals.
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.