ber vs snr ofdm using fft and ifft

조회 수: 2 (최근 30일)
salad9996
salad9996 2019년 12월 7일
답변: Roshni Garnayak 2019년 12월 11일
clc
clear
close all
%1
L=32;
m=(sign(randn(1,L))+1)/2;
%2
symbols = [-1i, -1, 1, 1i];
m2 = reshape(m, 2, []);
idx = m2(1,:) * 2 + m2(2,:) +1;
x = symbols(idx);
%3
S=16;
N=log2(S);
s=ifft(x);
%4
SNR_dB=[0:20];
for i=1:length(SNR_dB)
w(i,:)=sqrt(10.^(-SNR_dB(i)/10));
n=w*(randn(1,S)+1i*randn(1,S));
r=s+n;
x_=fft((r));
m1_=real(x_);
m2_=imag(x_);
end
%
% semilogy(SNR_dB,SER,'-b.');
% title('SER VS SNR')
% xlabel(' SNR(dB) ');
% ylabel(' SER ');
% grid on;
Hey guys, im struggling on the BER VS SNR plot. I have different range of SNR and trying to demapping to original signal. How can I do that? I'm struggling on getting the correct BER.

답변 (1개)

Roshni Garnayak
Roshni Garnayak 2019년 12월 11일
Refer to the following link for examples and workflows for plotting bit error rate with respect to signal-to-noise ratio:

카테고리

Help CenterFile Exchange에서 Test and Measurement에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by