rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
hp_plot_error.m
Go to the documentation of this file.
1 
2 function hp_plot_error(hp_model)
3 % function hp_plot_error(tree)
4 % Zeichnet ein Fehlergebiet - nur bei 2d Paramtern möglich
5 
6 
7 %50x50 Auflösung
8 detail=50;
9 error_buffer_hppart_rb = zeros (detail,detail);
10  for i=1:detail
11  for j=1:detail
12 
13  p=[(i)*1/detail;(j)*1/detail];
14  hp_model = set_mu(hp_model,p);
15  % Simulation mit bekanntem Baum und gewünschtem Parameter
16  sim = hp_simulation(hp_model);
17  error_buffer_hppart_rb(j,i) =max(sim.Delta);
18  end;
19  end;
20  %Ausgabe
21  figure();
22  % error_buffer_hppart_rb = flipud(error_buffer_hppart_rb);
23 
24  imagesc(0:1,0:1,error_buffer_hppart_rb(:,:));
25  axis xy;
26  % imagesc(error_buffer_hppart_rb(:,:));
27  colorbar;
28  title('Errors of the hp-approach reduced basis simulation with different parameters');
29  xlabel('\mu_1');
30  ylabel('\mu_2');
31  % pcolor(0:1,0:1,error_buffer_hppart_rb);
32  %shading flat;
33  %shading interp;
34 
35 end
36 
function hp_plot_error(hp_model)
Zeichnet ein Fehlergebiet - nur bei 2d Paramtern möglich.
Definition: hp_plot_error.m:17