ber vs snr ofdm using fft and ifft

11 ビュー (過去 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 Center および File ExchangeOFDM についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by