Beruflich Dokumente
Kultur Dokumente
Analysis of BER for M-ary PSK with Rayleigh fading channel with
AWGN
Aim: Analyze the BER for the M-ary PSK Using Matlab/Simulink for Rayleigh fading with
AWGN.
Software used: Matlab
Objective of the experiment:
To understand the effect of the fading environment for different M-ary PSK schemes with
different levels of AWGN.
Theory:
Modulation:
Modulation is a process by which a carrier signal is altered according to information in a
message signal. The carrier frequency, denoted F c, is the frequency of the carrier signal. The
sampling rate is the rate at which the message signal is sampled during the simulation. The frequency
of the carrier signal is usually much greater than the highest frequency of the input message signal.
Algorithm:
Generate the random sequence of numbers between 0 to M-1.
Modulate the random data
Generate Rayleigh fading channel
Matlab Program:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%Simulation of BPSK in rayleigh fading with AWGN%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
close all
clear all
clc
snr=-5:1:10;
lsn=length(snr);
M=2;
% Generating data
t_data=randi([0 M-1],100000,1);
% modulating data
mod_data = pskmod(t_data,M);
h=rayleighchan (1/100000,10);
changain1=filter(h,ones(size(t_data)));
a=max(max(abs(changain1)));
changain1=changain1./a;
chan_data = changain1.*mod_data;
%chan_data = filter(h,mod_data);
no_of_error=zeros(1,lsn);
ratio=zeros(1,lsn);
no_of_error_1=zeros(1,lsn);
ratio_1=zeros(1,lsn);
for ii=1:lsn
Plots:
Result: