rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
demo_detailed_gui.m
1 function demo_detailed_gui(varargin)
2 %function demo_detailed_gui(model,model_data,[reduced_data],...
3 % plot_params[,title, callbackfigure, ...
4 % cbhandle])
5 %
6 % demo gui for detailed simulations (calling demo_rb_gui after
7 % switching some pointers)
8 
9 % B. Haasdonk 2.3.2012
10 
11 tlist = varargin;
12 if nargin<1
13  params = [];
14  params.B1 = 2;
15  params.B2 = 2;
16  params.numintervals_per_block = 50;
17  params.mu_range = [0.1;10];
18  params.numintervals_per_block = 5;
19  model = thermalblock_model_struct(params);
20  model_data = gen_model_data(model);
21  plot_params = [];
22  plot_params.axis_equal = 1;
23  plot_params.axis_tight = 1;
24  plot_params.yscale_uicontrols = 0.7;
25  tlist{1} = model;
26  tlist{2} = model_data;
27  tlist{4} = plot_params;
28 end;
29 
30 model = tlist{1};
31 model.rb_simulation = model.detailed_simulation;
32 model.gen_reduced_data = @(model,detailed_data) detailed_data;
33 model.rb_reconstruction = @(model,detailed_data,sim_data) sim_data;
34 model.reduced_data_subset = @(model,reduced_data) reduced_data;
35 model.N = 2; % dummy value;
36 model.enable_error_estimator = 0;
37 tlist{1} = model;
38 detailed_data = tlist{2};
39 detailed_data.RB = ones(100,2);
40 tlist{2} = detailed_data;
41 plot_params = tlist{4};
42 plot_params.hide_N_ruler = 1;
43 tlist{4} = plot_params;
44 tlist{5} = 'detailed simulation';
45 demo_rb_gui(tlist{:});