rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
plot_sim_data.m
1 function p = plot_sim_data(dmodel, model_data, sim_data, plot_params)
2 % function p = plot_sim_data(dmodel, model_data, sim_data, plot_params)
3 % plots the simulation data as returned by detailed_simulation()
4 %
5 % This method actually calls femdiscfunc.plot().
6 %
7 % Parameters:
8 % sim_data: simulation data structure as returned by detailed_simulation()
9 % plot_params: structure which controls the plot output
10 %
11 % Required fields of sim_data:
12 % uh: discrete @ref fem function (c.f. femdiscfunc)
13 %
14 % Optional fields of plot_params:
15 % subsampling_level: number of sampling steps for interpolation of discrete
16 % @ref fem functions. (default = 10)
17 % title: title of the plot
18 %
19 % Return values:
20 % p: GUI handle to the created MATLAB figure
21 
22 % B. Haasdonk 22.2.2011
23 
24 % plot result
25 if nargin < 4
26  plot_params = [];
27 end;
28 if ~isfield(plot_params,'subsampling_level');
29  plot_params.subsampling_level = 10;
30 end;
31 if ~isfield(plot_params,'title');
32  plot_params.title = '';
33 end;
34 p = plot(sim_data.uh, plot_params);
35 title(plot_params.title);
36 % later: output as text label or as screen print, etc.
37 
38 
class representing a continous piecewise polynomial function of arbitrary dimension. DOFS correspond to the values of Lagrange-nodes.
Definition: femdiscfunc.m:17
function p = plot_sim_data(model, model_data, sim_data, plot_params)
function performing the plot of the simulation results as specified in model.
Definition: plot_sim_data.m:17
function p = plot(params)
plot as colormap
Definition: femdiscfunc.m:181