rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
hp_plot_domains.m
1 
2 function hp_plot_domains(hp_model)
3 %function hp_plot_domains( hp_model )
4 %
5 % plots the training set of the h-refinment
6 
7 plot_domains(hp_model.tree)
8 end
9 
10 
11 function plot_domains(tree)
12 % function hp_plot_domains( tree )
13 % Funktion zum Zeichnen von Trainigsgebieten vom hp Bäumen (Bei 2d parameter space)
14  t= iscell(tree);
15  % Naviagation durch den gesammten Baum
16  if t==1
17  plot_domains(tree{1});
18  plot_domains(tree{2});
19  else
20  %Ausgabe des Traingssets in zufälliger Farbe
21  hold on;
22  h=plot(tree.training(1,:),tree.training(2,:),'.','LineWidth', 2, 'MarkerSize', 8);
23  set(h, 'Color', rand(1,3))
24  end;
25 
26 end
27 
28 
29