I wrote a mfile that it simulates the qpsk modulation in an AWGN channel, but after 6dB SNR its probability of error is equal to "0", I used matlab functions like, awgn, pskmode, pskdemode and so on and the syntax that I found in matlab Help. What is the solution?
this is my mfile:
% In The Name of GOD
clear
% Create QPSK modem
M = 4;
hMod = modem.pskmod(M);
hDemod = modem.pskdemod(hMod);
% Generate data stream
tx = randint(10000,1,M);
% Modulate the data
txSig = modulate(hMod, tx);
% Compute error rate for different values of SNR.
EbNo = (0:13);
k = log2(M);
SNR = EbNo+10*log10(k); % Range of SNR values, in dB(Because No = 2*noiseVariance^2, we must add 3 dB)
BER = zeros(length(SNR), 1);
rx = zeros(length(tx),1);
for n = 1:length(SNR)
rxSig = awgn(txSig,SNR(n),'measured'); % Add Gaussian noise.
rx = demodulate(hDemod, rxSig); % Demodulate.
% Compute error rate.
[nErrors, BER(n,1)] = biterr(tx,rx);
end
% Compute theoretical performance results, for comparison.
BERtheory = berawgn(SNR,'psk',M,'nondiff');
semilogy(EbNo,BERtheory,'b-',EbNo,BER,'r*',EbNo,BER,'r');grid on;hold on;
legend('Theoretical BER','Empirical BER');
xlabel('EbNo (dB)'); ylabel('BER');
title('QPSK Modulation in an AWGN channel');
|
|
0
|
|
|
|
Reply
|
tina
|
1/17/2011 9:38:04 PM |
|
Hi, I want to know how you have taken the EbNo values from 0 to 13? I mean what is the criteria of choosing the range? I am building an OFDM based transmitter and I have to put the values of EbNo for 16 QAM an 64 QAM.So, for that, I wanted to know about it. "tina " <mehrabi_bayan@yahoo.com> wrote in message <ih2crs$kos$1@fred.mathworks.com>...
> I wrote a mfile that it simulates the qpsk modulation in an AWGN channel, but after 6dB SNR its probability of error is equal to "0", I used matlab functions like, awgn, pskmode, pskdemode and so on and the syntax that I found in matlab Help. What is the solution?
> this is my mfile:
>
> % In The Name of GOD
>
>
> clear
>
> % Create QPSK modem
> M = 4;
> hMod = modem.pskmod(M);
> hDemod = modem.pskdemod(hMod);
>
> % Generate data stream
> tx = randint(10000,1,M);
>
> % Modulate the data
> txSig = modulate(hMod, tx);
>
> % Compute error rate for different values of SNR.
> EbNo = (0:13);
> k = log2(M);
> SNR = EbNo+10*log10(k); % Range of SNR values, in dB(Because No = 2*noiseVariance^2, we must add 3 dB)
> BER = zeros(length(SNR), 1);
> rx = zeros(length(tx),1);
> for n = 1:length(SNR)
> rxSig = awgn(txSig,SNR(n),'measured'); % Add Gaussian noise.
> rx = demodulate(hDemod, rxSig); % Demodulate.
>
> % Compute error rate.
> [nErrors, BER(n,1)] = biterr(tx,rx);
> end
>
> % Compute theoretical performance results, for comparison.
> BERtheory = berawgn(SNR,'psk',M,'nondiff');
>
> semilogy(EbNo,BERtheory,'b-',EbNo,BER,'r*',EbNo,BER,'r');grid on;hold on;
> legend('Theoretical BER','Empirical BER');
> xlabel('EbNo (dB)'); ylabel('BER');
> title('QPSK Modulation in an AWGN channel');
|
|
0
|
|
|
|
Reply
|
shins87 (1)
|
4/17/2011 3:29:05 AM
|
|
|
1 Replies
740 Views
(page loaded in 0.045 seconds)
Similiar Articles: QPSK BER modulation - comp.soft-sys.matlabBER vs SNR plot in simulink - comp.soft-sys.matlab AWGN Simulink 'measured' - comp.soft-sys.matlab QPSK BER modulation - comp.soft-sys.matlab BER vs SNR plot in ... BPSK,QPSK,16-QAM constellation points - comp.dspphase modulation in MATLAB - comp.soft-sys.matlab 16-QPSK Vs 64 QAM - comp.dsp phase modulation in MATLAB - comp.soft-sys.matlab QPSK BER modulation - comp.soft-sys.matlab ... 16-QPSK Vs 64 QAM - comp.dspQPSK BER modulation - comp.soft-sys.matlab 16-QPSK Vs 64 QAM - comp.dsp BPSK demodulation - comp.dsp BPSK,QPSK,16-QAM constellation points - comp.dsp Modulation with a ... BPSK Demodulation Eb/N0 vs BER - comp.soft-sys.matlabQPSK BER modulation - comp.soft-sys.matlab BPSK Demodulation Eb/N0 vs BER - comp.soft-sys.matlab GaussianWaves: BER Vs Eb/N0 for QPSK modulation over AWGN The Eb/N0 Vs BER ... How to demodulate a QPSK signal - comp.soft-sys.matlabBPSK Demodulation Eb/N0 vs BER - comp.soft-sys.matlab I am using BPSK modulated signal @ carrier frequencey 8KHz, data rate 1KHz. ... BER Vs Eb/N0 for QPSK modulation over ... BPSK and 16-QAM modulation of binary data - comp.soft-sys.matlab ...QPSK BER modulation - comp.soft-sys.matlab... data stream > tx = randint(10000,1,M); > > % Modulate the data ... QPSK Vs 64 QAM - comp.dsp BER-SNR for Pulse position ... M-QAM and M-PSK - comp.soft-sys.matlabhi, I need a matlab code to simulate the Bit error rate vs. Eb/No for BPSK, QPSK and 8-PSK as well as, 4-QAM, 16-QAM and 64 QAM. The modulation shoul... phase modulation in MATLAB - comp.soft-sys.matlabQPSK BER modulation - comp.soft-sys.matlab... in Matlab - comp.dsp QPSK BER modulation - comp.soft-sys.matlab Modulation ... ... Offset quadrature phase-shift keying ... pulse position modulation using simulink. - comp.soft-sys.matlab ...QPSK BER modulation - comp.soft-sys.matlab BER vs SNR plot in simulink - comp.soft-sys.matlab AWGN Simulink 'measured' - comp.soft-sys.matlab QPSK BER modulation - comp ... BPSK demodulation - comp.dspQPSK BER modulation - comp.soft-sys.matlab 16-QPSK Vs 64 QAM - comp.dsp BPSK demodulation - comp.dsp BPSK,QPSK,16-QAM constellation points - comp.dsp Modulation with a ... Phase-shift keying - Wikipedia, the free encyclopedia4 Quadrature phase-shift keying (QPSK) 4.1 Implementation; 4.2 Bit error rate ... quadrature phase-shift keying (OQPSK) is a variant of phase-shift keying modulation using 4 ... GaussianWaves: BER Vs Eb/N0 for QPSK modulation over AWGNIn the previous post we saw about how QPSK modulation and demodulation can be done. This concept is extended further to simulate the performance of QPSK ... 7/21/2012 8:20:11 PM
|