rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
load_detailed_simulation.m
Go to the documentation of this file.
1 function [sim_data,tictoc] = load_detailed_simulation(m,savepath,params)
2 % function [sim_data,tictoc] = load_detailed_simulations(m,savepath,params)
3 % load single trajectory of previously saved results.
4 %
5 % If a routine uses this method, a previous save_detailed_simulations() should
6 % have been performed to guarantee consistency of the saved data with the
7 % current grid and parameters.
8 %
9 % \note No consistency check is performed.
10 %
11 % Parameters:
12 % m: is the index of the function to be looked for.
13 % savepath: is a path relative to 'RBMATLABTEMP', where the functions are
14 % stored by save_detailed_simulations()
15 % params: is a control structure (currently unused)
16 %
17 % Return values:
18 % sim_data: is the loaded simulation data structure.
19 % tictoc: is the time in seconds it took to compute the detailed
20 % simulation.
21 
22 % Bernard Haasdonk 14.5.2007
23 
24 sp = fullfile(rbmatlabtemp,savepath);
25 load(fullfile(sp,['detail',num2str(m),'.mat']));
26 
27 if isempty(tictoc)
28  tictoc = 0;
29 end
30 
function [ sim_data , tictoc ] = load_detailed_simulation(m, savepath, params)
load single trajectory of previously saved results.
function save_detailed_simulations(model, model_data, M, savepath)
perform loop over detailed simulations and save results or check consistency with existing saved resu...