Skip to content

Commit

Permalink
Summary plot
Browse files Browse the repository at this point in the history
  • Loading branch information
rikba committed May 18, 2017
1 parent e679903 commit a645ac7
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions matlab/test_feasibility_evaluation.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,21 @@
figure()
sampling_interval = [0.01 0.05 0.1];
errorbar(sampling_interval, mean(7:9), stddev(7:9))
xlabel('Sampling Interval \Delta t');
xlabel('Sampling Interval \Deltat');
ylabel('Time [s]');
title('Sampling: mean and stdev of computation times')
title('Sampling: mean and stdev of computation times')

%% Together
fig = figure();
hold on
sampling_interval = [0.01 0.05 0.1];
errorbar(min_section_time, mean(1:3), stddev(1:3))
errorbar(min_section_time, mean(4:6), stddev(4:6))
errorbar(sampling_interval, mean(7:9), stddev(7:9))
ax = get(fig,'CurrentAxes');
set(ax,'YScale','log');
xticks(sampling_interval);
xlabel('Minimum section time t_{min} / Sampling Interval \Deltat');
ylabel('Time [s]');
title('Mean and stdev of computation times')
legend('analytic', 'recursive', 'sampling');

0 comments on commit a645ac7

Please sign in to comment.