OFDM与F-OFDM对比误码率与信噪比MATLAB图我要分享

Comparison of BER and SNR between OFDM and f-ofdm in MATLAB

关注次数: 337

下载次数: 3

文件大小: 2.27 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:clear;clc;s = rng(211);            % 设置RNG状态的可重复性numFFT = 1024;           % FFT点的数量numRBs = 50;             % 资源块的数量rbSize = 12;             % 每个资源块的副载波数量cpLen = 72;              % 样本中的循环前缀长度bitsPerSubCarrier = 6;   % 2: QPSK, 4: 16QAM, 6: 64QAM, 8: 256QAMsnrdB =-18;              % 以dB为单位的SNRtoneOffset = 2.5;        % 音调偏移或超额带宽(在副载波中)L = 513;                 % 滤波器长度(=滤波器次序+ 1),奇数numDataCarriers = numRBs*rbSize;    % 子带中数据子载波的数量halfFilt = floor(L/2);n = -halfFilt:halfFilt;% Sinc函数原型滤波器pb = sinc((numDataCarriers+2*toneOffset).*n./numFFT);% Sinc截断窗口w = (0.5*(1+c


English Description:

Clear; CLC; s = RNG (211); & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;% sets the repeatability of RNG state numfft = 1024; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;% number of FFT points numrbs = 50; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;% number of resource blocks rbsize = 12; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;% number of subcarriers per resource block cplen =72; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;% the length of cyclic prefix in the sample bitspersubcarrier = 6; & nbsp;% 2: QPSK, 4: 16QAM, 6: 64QAM, 8: 256qamsnrdb = - 18; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;% SNR tone offset in DB = 2.5; & nbsp; & nbsp; & nbsp;% tone offset or excess bandwidth (in subcarrier) l = 513; &Nbsp & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;% filter length (= filter order + 1), odd numdatacarriers = numrbs * rbsize; & nbsp; & nbsp;% the number of data subcarriers in the subband, halffilter = floor (L / 2); n =- halfFilt:halfFilt;% Sinc function prototype filter Pb = sinc ((numdatacarriers + 2 * toneoffset). * n. / numfft);% sinc truncation window w = (0.5 * (1 + C)


代码预览

相关推荐