From a645ac779a5b89f07bc01f6107d0ebac1390e63c Mon Sep 17 00:00:00 2001 From: Rik Baehnemann Date: Thu, 18 May 2017 12:51:49 +0200 Subject: [PATCH] Summary plot --- matlab/test_feasibility_evaluation.m | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/matlab/test_feasibility_evaluation.m b/matlab/test_feasibility_evaluation.m index 4c0ee8ac..7446d96a 100644 --- a/matlab/test_feasibility_evaluation.m +++ b/matlab/test_feasibility_evaluation.m @@ -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') \ No newline at end of file +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');