OFDM发射机与接收机的matlab实现
clear;
close all;
EbN0 = [0:2:20]; %Eb/N0
N_iter = 1e5;
Nframe = 3;
Nused = 64;
Nbps = 4; M = 2^Nbps; %调制阶数 = 2/4/6; QPSK/16-QAM/64-QAM
Nfft = 64;
Nsym = 64;
norms = [1 sqrt(2) 0 sqrt(10) 0 sqrt(42)]; %BPSK 4-QAM 16-QAM
Target_neb = 500; %积累了一定的错误自动停止循环
sigPow = 0;
for i = 0:length(EbN0)
randn('state',0);rand('state',0);
% 初始化错误比特数和总比特数
Neb = 0;
Ntb = 0;
% 迭代设计
for m
共有 0 条评论