⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show_statistic.m

📁 放大转发协同通信的有关仿真代码
💻 M
字号:
function [handle] = show_statistic(colour_bw, order);
% Shows the result in a plot
global statistic;
if (nargin<1), colour_bw = 0; end
if (nargin<2), order = 1:size(statistic.x,1); end
if (colour_bw == 1)
colours = ['k-o';'k-*';'k-s';'k-+';'k-^';'k-h';'k-v';'k-p'];
else
%colours = ['b-o';'r-d';'g-s';'k-v';'m-^';'b-<';'r->';'g-p'];
colours = ['r-+';'b-s';'r-o';'k-<';'m-^';'b-d';'r->';'g-p'];
end
legend_ordered = [];
handle = figure;
colour = 0;
for n = order
colour = colour + 1;
semilogy(statistic.x(n,:),statistic.y(n,:),colours(colour,:));
legend_ordered = strvcat(legend_ordered,statistic.legend(n,:));
hold on
end
grid on;
legend (legend_ordered,3)
xlabel (statistic.xlabel)
ylabel (statistic.ylabel)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -