i=10;
goodput=(i-1)*5+2;
rtt=goodput+1;
lossrate=rtt+1;
qpm=lossrate+1;
total_request=qpm+1;
figure
h6=plot(asn12322_smoothed(:,goodput)*100/max(asn12322_smoothed(:,goodput)),'--r');
hold on;
h7=plot(asn12322_smoothed(:,rtt)*100/max(asn12322_smoothed(:,rtt)),'-b');
h8=plot(asn12322_smoothed(:,lossrate)*100/max(asn12322_smoothed(:,lossrate)),'--g');
h9=plot(asn12322_smoothed(:,qpm)*100/max(asn12322_smoothed(:,qpm)),'-k');
h10=plot(asn12322_smoothed(:,total_request)*100/max(asn12322_smoothed(:,total_request)),'-y');
leg=legend([h6,h7,h8,h9,h10],'goodput','rtt','lossrate','qpm','total\_request\_kbps');
%leg=legend([h1,h2,h3,h4,h5,h6,h7,h8,h9,h10],'goodput','rtt','lossrate','qpm','total\_request\_kbps','smoothed goodput','smoothed rtt','smoothed lossrate','smoothed qpm','smoothed total\_request\_kbps');
grid on;
set(leg,'Location','EastOutside');
title(pathname(i,1));
filename=strcat('plots/path',num2str(i),'_metrics_smoothed.pdf');
set(gcf,'PaperUnits','points')
set(gcf,'PaperSize',[880,480])
set(gcf,'PaperPositionMode','manual')
set(gcf,'PaperPosition',[0 0 880 480])
print(gcf,'-dpdf',filename);
filename=strcat('plots/path',num2str(i),'_metrics_smoothed.fig');
savefig(filename);
close(gcf);