summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/Graph/graphs_test.m
diff options
context:
space:
mode:
authorAlbin <albwa833@student.liu.se>2019-10-23 16:21:52 +0200
committerAlbin <albwa833@student.liu.se>2019-10-23 16:21:52 +0200
commitc165b264218e1320d7ba1f74976aa2448a6b5b29 (patch)
tree2121bee71a14a12be01ad5ec7b515aef387d4154 /Kod/bilbana/Graph/graphs_test.m
parent1694bd6b964f160e5f34d345d0d9aafb4b1d6186 (diff)
downloadtfyy51-c165b264218e1320d7ba1f74976aa2448a6b5b29.tar.gz
fix #4 och fix #2
Diffstat (limited to 'Kod/bilbana/Graph/graphs_test.m')
-rw-r--r--Kod/bilbana/Graph/graphs_test.m17
1 files changed, 10 insertions, 7 deletions
diff --git a/Kod/bilbana/Graph/graphs_test.m b/Kod/bilbana/Graph/graphs_test.m
index 3a2a2e5..451bbf1 100644
--- a/Kod/bilbana/Graph/graphs_test.m
+++ b/Kod/bilbana/Graph/graphs_test.m
@@ -1,11 +1,14 @@
%% Data needed
-car1.seg_times = [3.9,1.1,2.2,1.8,1.4,3.9,1.5,3.4,1.4;
- 4.2,1.1,2.2,1.8,1.4,3.4,1.5,3.4,1.4;
- 3.2,1.1,2.2,1.8,1.4,3.2,1.5,3.4,1.4;
- 4.0,1.4,2.2,1.8,1.4,3.4,1.5,3.4,1.4;
- 4.0,1.1,2.2,1.8,1.4,3.6,1.5,3.4,1.4;
- 4.1,1.1,2.2,1.8,1.4,3.8,1.5,3.4,1.4];
+A = [3.9,1.1,2.2,1.8,1.4,3.9,1.5,3.4,1.4;
+ 4.2,1.1,2.2,1.8,1.4,3.4,1.5,3.4,1.4;
+ 3.2,1.1,2.2,1.8,1.4,3.2,1.5,3.4,1.4;
+ 4.0,1.1,2.2,1.8,1.4,3.6,1.5,3.4,1.4;
+ 4.1,1.1,2.2,1.8,1.4,3.8, 0, 0, 0];
+B = [3.9,1.1,2.2,1.8,1.4,3.9, 0, 0, 0];
+C = [3.9,1.1,2.2,1.8,1.4,3.9,1.5,3.4,1.4;
+ 4.2,1.1,2.2,1.8,1.4,3.4, 0, 0, 0];
+car1.seg_times = C;
car1.lap_times = [14.1,13.8,14.15,13.9,14.1,14];
ref_lap_time = 14;
%% Actual test
-graphs(car1.lap_times,ref_lap_time,car1.seg_times,1) \ No newline at end of file
+graphs(car1.lap_times,ref_lap_time,car1.seg_times,7) \ No newline at end of file