summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/Graph/segment_time_graph.m
diff options
context:
space:
mode:
Diffstat (limited to 'Kod/bilbana/Graph/segment_time_graph.m')
-rw-r--r--Kod/bilbana/Graph/segment_time_graph.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/Kod/bilbana/Graph/segment_time_graph.m b/Kod/bilbana/Graph/segment_time_graph.m
index f88c836..602938b 100644
--- a/Kod/bilbana/Graph/segment_time_graph.m
+++ b/Kod/bilbana/Graph/segment_time_graph.m
@@ -1,15 +1,15 @@
-function [] = segment_time_graph(seg_time,track)
+function [] = segment_time_graph(seg_time, track)
%SEGMENT_TIME_GRAPH Snittid för varje segment.
-
-avr_seg_time = mean(seg_time);
-subplot(20,1,13:20);
+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);
+tit = join(['Medeltid/segment bana',string(track)]);
+title(tit);
end