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

📄 test.m

📁 ofdm系统中功率自适应分配算法研究的matlab源代码(k=20)
💻 M
字号:
%这是我自己验证算法性能时的参数赋值,并有图形,可做参考
clc
clear
aa=linspace(0.1,10,20);
qq=linspace(0.1,10,20);
%aa=10*rand(1,20)
%qq=10*rand(1,40)
K=20;
pp=optimal_pow_alloc(aa,K);
p=suboptimal_alloc(qq,K);
sum(p);
plot(aa,pp,'g',qq,p,'r')
title('绿线为最佳算法,红线为次佳算法');
xlabel('信道信息');
ylabel('功率分配');
grid

⌨️ 快捷键说明

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