简体   繁体   English

BER测量和下采样MATLAB

[英]BER measurement and Downsampling MATLAB

I'm trying to measure BER of 4-QAM modulated signal after downsampling (without filtering). 我正在尝试在下采样(不进行滤波)之后测量4-QAM调制信号的BER。 problem is im not sure what to measure after i downsample as the signal is much shorter and the original signal is the same. 问题是我不确定在下采样后要测量什么,因为信号要短得多且原始信号是相同的。 here's my code: 这是我的代码:

n=2;
sig = randi([0 1],1,10E4);
sig_d=downsample(sig,n);
sig_mod=qammod(sig_d,4);
y=awgn(sig_mod,5);
sig_demod=qamdemod(y,4);
z=sig_demod>0;
BER = biterr(sig,z)

i might be missing something basic here. 我可能在这里缺少一些基本的东西。 the goal of this code is to reduce sampling frequency and measure the BER of the sampled signal. 该代码的目的是降低采样频率并测量采样信号的BER。

If you want to take the BER with respect to the original signal, you need to reconstruct the original signal after demodulation. 如果要针对原始信号采用BER,则需要在解调后重建原始信号。 You can interpolate to get back to the same number of samples. 您可以插值以返回相同数量的样本。 Something like this: 像这样:

a=interp(sig_demod,2);
b=double(a>0.5);
BER = biterr(sig,b);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM