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()
8 % sim_data: simulation data structure as returned by detailed_simulation()
9 % plot_params: structure which controls the plot output
11 % Required fields of sim_data:
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
20 % p: GUI handle to the created MATLAB figure
22 % B. Haasdonk 22.2.2011
28 if ~isfield(plot_params,
'subsampling_level');
29 plot_params.subsampling_level = 10;
31 if ~isfield(plot_params,
'title');
32 plot_params.title =
'';
34 p = plot(sim_data.uh, plot_params);
35 title(plot_params.title);
36 % later: output as text label or as screen print, etc.
class representing a continous piecewise polynomial function of arbitrary dimension. DOFS correspond to the values of Lagrange-nodes.
function p = plot_sim_data(model, model_data, sim_data, plot_params)
function performing the plot of the simulation results as specified in model.
function p = plot(params)
plot as colormap