fairnesscurve.m

来自「ofdm系统当中的接纳控制技术 程序当中有三种接纳控制算法的对比 都是基于ofd」· M 代码 · 共 23 行

M
23
字号
function z = FairnessCurve(AVER)

avethroughput = mean(AVER);
normalthroughput = AVER./avethroughput;

no = 80;
[n,xor] = hist(normalthroughput,no);
total = sum(n);
z=[1:no];                                                                                                                                  
result=[1:no];
for i=z
    result(i) = sum(n(1:i));
end
result = result./total;
plot(xor,result,'-');
xlabel('Unitary Throughput');
ylabel('CDF');
axis([0,1.5,0,1]);
grid on;
hold;

x = linspace(0.1,0.5,1000);
plot(x,x,'r');

⌨️ 快捷键说明

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