1 function [error_map_sequence, mu_grid]=prepare_animation(model,detailed_data,options)
7 if isfield(detailed_data,'parts_detailed_data')
8 nr_p_parts=length(detailed_data.parts_detailed_data)
9 copy_detailed_data = detailed_data;
10 copy_model=model.base_model;
12 copy_detailed_data.parts_detailed_data{1}=detailed_data;
18 error_map_sequence ={};
20 max_Error=0; %maximal error
for plotting animation of error_map (plot_mode=2)
25 error_plot_params.holdOn =1;
26 error_plot_params.transparency=0.6;
28 error_plot_params.maxValue=max_Error;
30 if isfield(options,'intervals')
31 error_plot_params.intervals=options.intervals;
33 if isfield(options,'online_data')
34 online_data=options.online_data;
36 online_data=gen_online_data(model,detailed_data);
38 [mu_grid,error_map_sequence{part}]=plot_error_domain(model,online_data,error_plot_params);
39 act_max_error = max(max(error_map_sequence{part}));
40 if(act_max_error>max_Error)
41 max_Error = act_max_error;
42 disp([
'Maximaler Fehler ist: ',num2str(max_Error)]);