From 0adaf0b35098083d27cb0352f916745bb2a29fb4 Mon Sep 17 00:00:00 2001 From: Kevin D Date: Tue, 2 Jun 2026 10:11:54 -0700 Subject: [PATCH] plotting hack --- aerpaw/results/plotGpsLogs.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aerpaw/results/plotGpsLogs.m b/aerpaw/results/plotGpsLogs.m index 8003678..ec39bfd 100644 --- a/aerpaw/results/plotGpsLogs.m +++ b/aerpaw/results/plotGpsLogs.m @@ -79,7 +79,7 @@ function [f, G] = plotGpsLogs(logDirs, seaToGroundLevel, plotWholeFlight) fprintf("Minimum distance between agents %d and %d is %2.3f\n", ii, jj, min(d)); figure; - plot(G{1}.Timestamp(2:(end - 1)), d); + plot(G{1}.Timestamp(1:length(d)), d); xlabel("Time"); ylabel("Distance"); title("UAV0 and UAV1 distance"); grid("on"); fprintf("Average distance between agents %d and %d is %2.3f\n", ii, jj, mean(d)); fprintf("Median distance between agents %d and %d is %2.3f\n", ii, jj, median(d));