summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/Graph/segment_time_graph.m
diff options
context:
space:
mode:
authoralex <aletu130@student.liu.se>2019-10-20 15:54:33 +0200
committeralex <aletu130@student.liu.se>2019-10-20 15:54:33 +0200
commit13f22ba6b4a6e530be779ef96d71850e767e9366 (patch)
tree04840aaf2a896a65c8cd2005fcc2019c96f0a6fb /Kod/bilbana/Graph/segment_time_graph.m
parent483d5184a309a396be7310afcddb913d9e24efe2 (diff)
parent7978f8c42029b59e479ec918b67d968b1385081c (diff)
downloadtfyy51-13f22ba6b4a6e530be779ef96d71850e767e9366.tar.gz
Merge branch 'freeze'
Diffstat (limited to 'Kod/bilbana/Graph/segment_time_graph.m')
-rw-r--r--Kod/bilbana/Graph/segment_time_graph.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/Kod/bilbana/Graph/segment_time_graph.m b/Kod/bilbana/Graph/segment_time_graph.m
new file mode 100644
index 0000000..602938b
--- /dev/null
+++ b/Kod/bilbana/Graph/segment_time_graph.m
@@ -0,0 +1,15 @@
+function [] = segment_time_graph(seg_time, track)
+%SEGMENT_TIME_GRAPH Snittid för varje segment.
+seg_time_size = size(seg_time);
+avr_seg_time = mean(seg_time(1:(seg_time_size(1) - 1), 1:(seg_time_size(2))));
+subplot(20, 1, 13:20);
+
+Plot = bar(avr_seg_time);
+%Plot.Marker = 'o';
+Plot.FaceColor = 'k';
+xlabel('Segment');
+ylabel('Tid [s]');
+tit = join(['Medeltid/segment bana',string(track)]);
+title(tit);
+end
+