function [] = plot_results_M1()
%UNTITLED2 Summary of this function goes here
%   Detailed explanation goes here
load('t=10.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 10 for a single-UAV system')
clear all
load('t=30.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 30 for a single-UAV system')
clear all
load('t=50.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 50 for a single-UAV system')
clear all
load('t=60.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 60 for a single-UAV system')
clear all
load('t=100.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 100 for a single-UAV system')
clear all
load('t=120.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 120 for a single-UAV system')
clear all
load('t=210.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 210 for a single-UAV system')
clear all
load('t=300.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 300 for a single-UAV system')
clear all
load('t=400.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 400 for a single-UAV system')
clear all
load('t=800.mat')
plot_1(w,Qo,C,Q)
title('Optimized UAV trajectories for T = 800 for a single-UAV system')
clear all
end

function plot_1(w,Qo,C,Q)
figure
plot(w(:,1) , w(:,2),'b o')
grid on
xlabel('x(m)')
ylabel('y(m)')
hold on
plot(Qo(:,1,1),Qo(:,2,1),'r -- ')
plot(C(1),C(2),'r x')
plot(Q(:,1,1),Q(:,2,1),'k -  ')
end