How to generate Noncoherent BFSK in awgn?

조회 수: 5 (최근 30일)
shruti
shruti 2012년 9월 14일
clear N = 10^6 % number of bits or symbols ip = rand(1,N)>0.5;
s = 2*ip-1;
n = 1/sqrt(2)*[randn(1,N) + j*randn(1,N)];
Eb_N0_dB = [-3:10]; % multiple Eb/N0 values
for ii = 1:length(Eb_N0_dB)
y = s + 10^(-Eb_N0_dB(ii)/20)*n;
ipHat = real(y)>0;
nErr(ii) = size(find([ip- ipHat]),2);
end
simBer = nErr/N;
theoryBer = 0.5*erfc(sqrt(10.^(Eb_N0_dB/10))); % plot close all figure semilogy(Eb_N0_dB,theoryBer,'b.-');
hold on semilogy(Eb_N0_dB,simBer,'m*-'); axis([-3 10 10^-5 0.5])
grid on legend('theory', 'simulation'); xlabel('Eb/No, dB'); ylabel('Bit Error Rate');
title('Bit error probability curve for BPSK modulation');
For BPSK,I did this..Similarly how to generate for noncoherent BFSK? Thanks in advance..

답변 (0개)

카테고리

Help CenterFile Exchange에서 BFSK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by