代码拉取完成,页面将自动刷新
function [] = plotLinkMetricsForDifferentSTsStdDev(linkThpts, linkGoodpts, linkCollPer, linkLens, resultsPath, setUpTitle)
%plots the standard deviation scatter of the results
figure(1)
%colors = {'g', 'r', 'b', 'm', 'y', 'k'};
colorsNames = {'green', 'red', 'blue', 'magenta', 'yellow', 'black'};
tiledlayout(2,1)
nexttile
% plot all throughput graphs in the same figure
for j=1:6
plot(linkLens, linkThpts(j, :), '-o', 'Color', colorsNames{j});
% scatter(linkLens, linkThpts(j, :), '.', colors{j});
% line(linkLens, linkThpts(j, :), 'Color', colorsNames{j});
hold on
end
xlabel('Link length (km)');
ylabel('Standard Deviation of Link Throughput');
title({'Standard Deviation of Link Throughputs (including overhead)', 'Standard SlotTime VS various APD-based SlotTime values', setUpTitle});
legend({'Standard SlotTime', '2APD SlotTime', '3APD SlotTime', 'APD SlotTime', '0.5APD SlotTime', '0.25APD SlotTime'}, 'Location', 'bestoutside');
hold off
nexttile
% plot all goodputs graphs in the same figure
for j=1:6
plot(linkLens, linkGoodpts(j, :), '-o', 'Color', colorsNames{j});
% scatter(linkLens, linkGoodpts(j, :), '.', colors{j});
% line(linkLens, linkGoodpts(j, :), 'Color', colorsNames{j});
hold on
end
title({'Standard Deviation of Link Goodputs (only successfully received data)', 'Standard SlotTime VS APD-based SlotTime', setUpTitle});
xlabel('Link length (km)');
ylabel('Standard Deviation of Link Goodput');
legend({'Standard SlotTime', '2APD SlotTime', '3APD SlotTime', 'APD SlotTime', '0.5APD SlotTime', '0.25APD SlotTime'}, 'Location', 'bestoutside');
savefig([resultsPath, '\Goodput_and_Throughput_STDDEV.fig']);
hold off
figure(2)
% plot all collided percisions graphs in the same figure
for j=1:6
plot(linkLens, linkCollPer(j, :), '-o', 'Color', colorsNames{j});
% scatter(linkLens, linkCollPer(j, :), '.', colors{j});
% line(linkLens, linkCollPer(j, :), 'Color', colorsNames{j});
hold on
end
title({'Standard Deviation of Percentage of collided data bytes (%)', setUpTitle});
xlabel('Link length (km)');
ylabel('Standard Deviation of Percentage of collided data bytes');
legend({'Standard SlotTime', '2APD SlotTime', '3APD SlotTime', 'APD SlotTime', '0.5APD SlotTime', '0.25APD SlotTime'}, 'Location', 'bestoutside');
savefig([resultsPath, '\Collided_Bytes_Percentage_STDDEV.fig']);
hold off
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。