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()
6 % sim_data: simulation data structure as returned by detailed_simulation()
7 % plot_params: structure which controls the plot output
9 % Optional fields of plot_params:
10 % plot_title: title of the plot (
default =
'trajectory')
11 % plot_output_title: title of the output functional plot (
default =
'output')
12 % axis_equal: flag equalizing the axes ratio
14 % Required fields of sim_data:
15 % U: DOF vector of solution snapshots
17 % Required fields of sim_data:
18 % y: DOF vector of output
function
21 % p : Matlab GUI handle to figure window
23 % Bernard Haasdonk 4.9.2009
25 ddescr = dmodel.descr;
27 if ~isfield(plot_params,
'plot_title')
28 plot_title = 'trajectory';
30 plot_title = plot_params.plot_title;
33 if ~isfield(plot_params,'plot_output_title')
34 plot_output_title = 'output';
36 plot_output_title = plot_params.plot_output_title;
40 plot_params.title = plot_title;
41 if ~isfield(plot_params,'plot')
42 plot_params.plot = ddescr.plot;
44 plot_params.axis_equal = 1;
47 % plot output functional
48 if ddescr.compute_output_functional
51 title(plot_output_title);
function p = plot_sequence(varargin)
plotting a sequence of data slices on polygonal 2d grid (constructed from params if empty) and provid...
function p = plot_sim_data(model, model_data, sim_data, plot_params)
function performing the plot of the simulation results as specified in model.