How to generate Noncoherent BFSK in awgn?
5 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on BFSK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!