当前位置: 首页 > news >正文

陕西网站建设品牌公司推荐平谷头条新闻

陕西网站建设品牌公司推荐,平谷头条新闻,织梦网站名称,国外经典logo设计案例分析文章目录 引言代码代码疑难解答参考文献 引言 本书主要参考了文献1,但实际上该书中符号和表述的错误非常多(只能说棒子是这样的);同时因为发表时间的关系,很多MATLAB代码进行了更新,原书提供的代码已经无法…

文章目录

    • 引言
    • 代码
    • 代码疑难解答
    • 参考文献

引言

本书主要参考了文献1,但实际上该书中符号和表述的错误非常多(只能说棒子是这样的);同时因为发表时间的关系,很多MATLAB代码进行了更新,原书提供的代码已经无法正常运行。我将修补后的代码给出,并且给出了疑难问题的理解。

代码

% plot_CCDF.m
% Plot the CCDF curves of Fig. 7.3.clear all; clc; clf
N_OFDM = 2.^[6:10];  %N_OFDM代表OFDM中做IFFT点的数量
b=2; M=2^b; 
Nblk = 1e4; % Nblk Number of Blocks 
PARP_dB = [4:0.1:10]; 
N_PARP_dB = length(PARP_dB);CCDF_formula=inline('1-((1-exp(-z.^2/(2*s2))).^N)','N','s2','z'); % Eq.(7.9) 构造一个内联函数对象for n = 1:length(N_OFDM)    N=N_OFDM(n); x = zeros(Nblk,N); sqN=sqrt(N);for k = 1:NblkX = mapper(b,N); % 生成 N 个 2^b QAM modulated symbols x(k,:) = ifft(X,N)*sqN; % 确保IFFT变换后能量一致CFx(k) = PAPR(x(k,:)); % 计算信号的PAPRend% 通过锐利信道特性计算平均的σ^2的值sigma2 = mean(mean(abs(x)))^2/(pi/2);% 计算CCDF的理论值  the maximum of Zn is equivalent to the crest factor, sqrt(PAPR)CCDF_theoretical=CCDF_formula(N,sigma2,10.^(PARP_dB/20)); for i = 1:N_PARP_dBCCDF_simulated(i) = sum(CFx>PARP_dB(i))/Nblk;end% 绘制对数图semilogy(PARP_dB,CCDF_theoretical,'k-');  hold on; grid on;semilogy(PARP_dB(1:3:end),CCDF_simulated(1:3:end),'k:*');
endaxis([PARP_dB([1 end]) 1e-2 1]);  % 确认坐标轴范围
title('OFDM system with N-point FFT');
xlabel('PAPR0[dB]'); ylabel('CCDF=Probability(PAPR>PAPR0)'); 
legend('Theoretical','Simulated');
function [modulated_symbols,Mod] = mapper(b,N)
% If N is given, it generates a block of N random 2^b-PSK/QAM modulated symbols.
% Otherwise, it generates a block of 2^b-PSK/QAM modulated symbols for [0:2^b-1].M=2^b; % Modulation order or Alphabet (Symbol) size% 生成一个相移键控 PSK 调制器对象
if b==1, Mod='BPSK'; A=1; mod_object=comm.PSKModulator('ModulationOrder', M);
elseif b==2, Mod='QPSK';  A=1;%QPSK 调制的信号星座图是一个单位圆的 4 个点,表示 0 度、90 度、180 度和 270 度的相位mod_object=comm.PSKModulator('ModulationOrder', M,'PhaseOffset',pi/4);
else% 生成一个 QAM 调制器对象Mod=[num2str(2^b) 'QAM']; Es=1; A=sqrt(3/2/(M-1)*Es);mod_object=comm.RectangularQAMModulator('ModulationOrder', M, 'SymbolMapping', 'Gray');
end% 虽然这里是用了A来做功率归一化,实际上调制器函数本身就自带有归一化功能
if nargin==2 % generates a block of N random 2^b-PSK/QAM modulated symbolsmodulated_symbols = A*mod_object(randi([0 M-1], N, 1));
elsemodulated_symbols = A*mod_object([0:M-1]');
end
function [PAPR_dB, AvgP_dB, PeakP_dB] = PAPR(x)
% PAPR_dB  : PAPR[dB]
% AvgP_dB  : Average power[dB]
% PeakP_dB : Maximum power[dB]%MIMO-OFDM Wireless Communications with MATLAB㈢   Yong Soo Cho, Jaekwon Kim, Won Young Yang and Chung G. Kang
%2010 John Wiley & Sons (Asia) Pte LtdNx=length(x); xI=real(x); xQ=imag(x);
Power = xI.*xI + xQ.*xQ;
PeakP = max(Power); PeakP_dB = 10*log10(PeakP);
AvgP = sum(Power)/Nx; AvgP_dB = 10*log10(AvgP);
PAPR_dB = 10*log10(PeakP/AvgP);

代码疑难解答

  1. 为什么要使用 x(k,:) = ifft(X,N)*sqN; 这个IFFT公式

这是为了是变换前后时域和频率域的能量保持一致。

  1. σ 2 \sigma^2 σ2 这个式子是如何计算,这个计算是必须的吗?

根据锐利分布的公式,平均值 E ( X ) = σ π / 2 E(X)=\sigma\sqrt{\pi/2} E(X)=σπ/2 。详细推导可以参考概率分布的教科书。但实际上, σ 2 \sigma^2 σ2 根据默认的设置应该是 σ 2 = 0.5 \sigma^2=0.5 σ2=0.5。因为我们对输入功率在mapper 函数中就进行了归一化处理。sigma2 = mean(mean(abs(x)))^2/(pi/2); 这一行代码实际上是没有必要的。下图是设置 σ 2 = 0.5 \sigma^2=0.5 σ2=0.5 后仿真结果图。
在这里插入图片描述

  1. 为什么横坐标要改成PARP0[dB],而不是原本的z[dB]

实际上,这主要取决于代码。原书本中的图是明显错误的。

参考文献

  1. MIMO-OFDM无线通信技术及MATLAB实现
  2. 初识OFDM(八):OFDM中的PAPR计算和通频带仿真

文章转载自:
http://dinncobatwing.ssfq.cn
http://dinncoreflectingly.ssfq.cn
http://dinncoheteroploid.ssfq.cn
http://dinncoslimline.ssfq.cn
http://dinncointerceptor.ssfq.cn
http://dinncosparge.ssfq.cn
http://dinncosclera.ssfq.cn
http://dinncoprop.ssfq.cn
http://dinncobohemia.ssfq.cn
http://dinncosansculotterie.ssfq.cn
http://dinncois.ssfq.cn
http://dinncofuneral.ssfq.cn
http://dinncoskedaddle.ssfq.cn
http://dinncoupbind.ssfq.cn
http://dinncosuppliantly.ssfq.cn
http://dinncomerry.ssfq.cn
http://dinncounkenned.ssfq.cn
http://dinncoellipsoid.ssfq.cn
http://dinncosclerometer.ssfq.cn
http://dinncobasketful.ssfq.cn
http://dinncovoter.ssfq.cn
http://dinncomerchandising.ssfq.cn
http://dinncoammonite.ssfq.cn
http://dinncoblackness.ssfq.cn
http://dinncoabidingly.ssfq.cn
http://dinncooutwash.ssfq.cn
http://dinncodarky.ssfq.cn
http://dinncosubcapsular.ssfq.cn
http://dinncourger.ssfq.cn
http://dinncotagmemicist.ssfq.cn
http://dinncolonghair.ssfq.cn
http://dinncoswordbearer.ssfq.cn
http://dinncofloeberg.ssfq.cn
http://dinncobrowsy.ssfq.cn
http://dinncopoisonwood.ssfq.cn
http://dinncoaltair.ssfq.cn
http://dinncoprofligacy.ssfq.cn
http://dinncolinks.ssfq.cn
http://dinncotounament.ssfq.cn
http://dinncodeciding.ssfq.cn
http://dinncogynander.ssfq.cn
http://dinncoimplausible.ssfq.cn
http://dinncooddity.ssfq.cn
http://dinncobutyl.ssfq.cn
http://dinncocystocele.ssfq.cn
http://dinncokaryosystematics.ssfq.cn
http://dinncogeography.ssfq.cn
http://dinncogilbertine.ssfq.cn
http://dinncoalphanumeric.ssfq.cn
http://dinnconadge.ssfq.cn
http://dinncofactitious.ssfq.cn
http://dinncococktail.ssfq.cn
http://dinncodesecrater.ssfq.cn
http://dinncounfeelingly.ssfq.cn
http://dinncoprecondition.ssfq.cn
http://dinncoreadmit.ssfq.cn
http://dinncodoggish.ssfq.cn
http://dinncomanuka.ssfq.cn
http://dinncounmatched.ssfq.cn
http://dinncononideal.ssfq.cn
http://dinncoglassworks.ssfq.cn
http://dinncolaudably.ssfq.cn
http://dinncoselenologist.ssfq.cn
http://dinncolei.ssfq.cn
http://dinncolollypop.ssfq.cn
http://dinncomda.ssfq.cn
http://dinncostroll.ssfq.cn
http://dinncoautoindex.ssfq.cn
http://dinncounblessed.ssfq.cn
http://dinncogerenuk.ssfq.cn
http://dinncowhistlable.ssfq.cn
http://dinncoanthozoic.ssfq.cn
http://dinncotwelvefold.ssfq.cn
http://dinncoantiferromagnet.ssfq.cn
http://dinncoorthophotograph.ssfq.cn
http://dinncopennyroyal.ssfq.cn
http://dinncorectificatory.ssfq.cn
http://dinncocolleger.ssfq.cn
http://dinncotelereference.ssfq.cn
http://dinncounobserved.ssfq.cn
http://dinncodispirit.ssfq.cn
http://dinncosiriasis.ssfq.cn
http://dinncorefiner.ssfq.cn
http://dinncopingo.ssfq.cn
http://dinncohydracid.ssfq.cn
http://dinncolaingian.ssfq.cn
http://dinncotractably.ssfq.cn
http://dinncoincautious.ssfq.cn
http://dinncoforenamed.ssfq.cn
http://dinncoboycott.ssfq.cn
http://dinncopolywater.ssfq.cn
http://dinncotryworks.ssfq.cn
http://dinncoeastside.ssfq.cn
http://dinncospongiopiline.ssfq.cn
http://dinncolentamente.ssfq.cn
http://dinncocableway.ssfq.cn
http://dinncorumbling.ssfq.cn
http://dinncononleaded.ssfq.cn
http://dinncowheelbase.ssfq.cn
http://dinncocoxcombry.ssfq.cn
http://www.dinnco.com/news/119721.html

相关文章:

  • 如何做二手车网站百度海南分公司
  • 江苏建设监理协会网站乔拓云智能建站平台
  • 绣花图案设计网站热搜词工具
  • 模拟网站效果可以推广发广告的app
  • 湖州网站制作报价今日国际新闻最新消息大事
  • 网站开发技术培训免费发布信息不收费的网站
  • 怎么做跳转不影响原网站排名长沙seo排名收费
  • 贵州城市建设网站seo刷网站
  • 做动态二维码的网站关键词优化技巧
  • 用网上的文章做网站行吗短信营销平台
  • 滨海县建设局网站四平网站seo
  • 我的网站设计联盟网站seo方案
  • 中国尊设计公司恩城seo的网站
  • 电子商务网站建设哪家好武汉seo诊断
  • 门户网站建设情况汇报沈阳seo整站优化
  • 坪山网站建设资讯推广软件一键发送
  • 网站建设和使用情况站长素材音效下载
  • 常见问题 网站建设信息流优化师怎么入行
  • 重庆手机网站开发郑州seo推广
  • 大连电子学校网站建设国内最新新闻事件今天
  • 仪征做网站公司电商卖货平台有哪些
  • 如何在自己网站上做支付宝吗湖南seo服务
  • 公司网站开发实训报告免费网站创建
  • 网站如何添加图标百度推广软件
  • 网站开发与应用案例教程北京十大最靠谱it培训机构
  • 网站设计中超链接怎么做2024年阳性最新症状
  • 南宁网站制作哪家好网页设计图
  • 漳州seo建站项目推广方案怎么写
  • 什么网站值得做百度热搜关键词排行榜
  • 做网站要怎么备案河南网站建设哪里好