MATLAB Answers

0

Rapid Accelerator - Monte Carlo simulation

Asked by David Amor on 8 Dec 2015
Latest activity Answered by David Amor on 9 Dec 2015
I followed the instructions on this blog.
When the simulations have finished, how do I observe the results from the runs?

  0 Comments

Sign in to comment.

1 Answer

Answer by David Amor on 9 Dec 2015
 Accepted Answer

Two steps:
(1) Add
'SaveState','on'
To the input parameters of "sim" such that the states of the system will be logged.
simout(i) = sim(mdl,'SimulationMode','rapid',...
'RapidAcceleratorUpToDateCheck','off', ...
'RapidAcceleratorParameterSets',paramSet(i), ...
'SaveState','on');
(2) Access the saved states of the i-th simulation by
simout(i).get('xout')

  0 Comments

Sign in to comment.