资 源 简 介
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