rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
step1_detailed_simulation.m
Go to the documentation of this file.
1 % script performing a single detailed simulation and plotting it.
2 %
3 % required variables that need to be set:
4 % - 'dmodel'
5 % - 'model_data'
6 % - 'plot_params'
7 %
8 % optional variables that can be set:
9 % - 'mu_default': a mu vector for which the detailed simulation shall
10 % be computed.
11 %
12 % generated variables:
13 % - 'sim_data'
14 
15 disp('performing single detailed simulation')
16 
17 %load(fullfile(rbmatlabtemp, params.step0file));
18 
19 tic;
20 %if isempty(mu_default)
21 % mu_default = cellfun(@mean, model.mu_ranges);
22 %end
23 %model = model.set_mu(model, mu_default);
24 sim_data = detailed_simulation(dmodel, model_data);
25 toc
26 
27 plot_sim_data(dmodel, model_data, sim_data, plot_params);
28 
29 %save(fullfile(rbmatlabtemp, params.step1file), 'sim_data');
30 
function p = plot_sim_data(model, model_data, sim_data, plot_params)
function performing the plot of the simulation results as specified in model.
Definition: plot_sim_data.m:17