Channel Estimation in Mobile Wireless System Based On OFDM
Channel Estimation in Mobile Wireless System Based On OFDM
Acknowledgement
First and foremost, I would like to thank my respective advisor Ato Getachew for the guidance
and brilliant ideas from he. Without her kindness to lending hand helping us, this project can’t be
completed as it right now. Besides that, I would like to thanks Jimma University school of
electrical and computer engineering for given as this project. Finally, I would like to thanks my
group members those participate on this project.
I
Channel estimation in mobile wireless system based on OFDM
Abstract
The demands of multimedia services from mobile user equipment (UE) for achieving high data
rate, high capacity and reliable communication in modern mobile wireless systems are
continually ever-growing. As a consequence, several technologies, such as the Universal
Mobile Telecommunications System (UMTS) and the 3rd Generation Partnership Project
(3GPP), have been used to meet these challenges. However, due to the channel fading and the
Doppler shifts caused by user mobility, a common problem in wireless systems, additional
technologies are needed to combat multipath propagation fading and Doppler shifts. Time-
variant channel estimation is one such crucial technique used to improve the performance of the
modern wireless systems with Doppler spread and multipath spread. Channel estimation is done
by estimating the time-varying channel frequency response for the OFDM symbols. Time-
variant channel estimation using blocks type and comp type pilot technique is have been focused
employing Least Square Error (LSE) and Minimum Mean Square Error (MMSE) channel
estimators. A useful channel estimation technique in mobile wireless communication for
accurately estimating transmitted information. The symbol error rate (SER) performances of
OFDM system for both LS and MMSE estimation show in this paper.
II
Channel estimation in mobile wireless system based on OFDM
Table of Contents
Acknowledgement ..................................................................................................................................... I
Abstract ..................................................................................................................................................... II
INTRODUCTION ......................................................................................................................................... 1
1.5 Methodology....................................................................................................................................... 5
III
Channel estimation in mobile wireless system based on OFDM
Referees .................................................................................................................................................. 31
Appendix ................................................................................................................................................. 32
IV
Channel estimation in mobile wireless system based on OFDM
4G 4th generation
BS Base Station
CP cyclic prefix
V
Channel estimation in mobile wireless system based on OFDM
DS Delay Spread
MS Mobile Station
UE User Equipment
VI
Channel estimation in mobile wireless system based on OFDM
VII
Channel estimation in mobile wireless system based on OFDM
CHAPTER ONE
INTRODUCTION
1.1 Background of study
Channel estimation is a technique used to evaluate the performance of communication
channel .It is used especially in mobile wireless systems where the wireless channel changes
over time, usually caused by transmitter and/or receiver being in motion at vehicular speed.
Channel estimation is an integral part of OFDM. Mobile wireless communication is adversely
affected by the multipath interference resulting from reflections from surroundings, such as hills,
buildings and other obstacles. In order to provide reliability and high data rates at the receiver,
the system needs an accurate estimate of the time-varying channel. Furthermore, mobile wireless
systems are one of the main technologies which used to provide services such as data
communication, voice, and video with quality of service (QOS) for both mobile users and
nomadic. The knowledge of the impulse response of mobile wireless propagation channels in the
estimator is an aid in acquiring important information for testing, designing or planning wireless
communication systems. Channel estimation is based on the training sequence of bits which is
unique for a certain transmitter and which is repeated in every transmitted burst .the
channel estimator gives the knowledge on the channel impulse response (CIR) to the detector
and it estimates separately the CIR for each burst by exploiting transmitted bits and
corresponding received bits. Signal detectors must have knowledge concerning the channel
impulse response (CIR) of the radio link with known transmitted sequences, which can be
done by a separate channel estimator. The modulated corrupted signal from the channel has to
be undergoing the channel estimation before the demodulation takes place at the receiver side.[3]
Multipath
channel
Noise
Channel CSMA
estimator
Fading
Adjacent channel interference
Noise
Doppler shift etc.
The CSMA
2
Channel estimation in mobile wireless system based on OFDM
When the signal travel through a channel, objects in a transmission path can create
multiple echoes of the signal. Those occur at the receiver and overlap in successive e slots. This
is known as inter-symbol interference. at the receiver side can be used to compensate the
effect of ISI by using CSMA((Carrier Sense Multiple Access)
Used if the channel has time slots with a slot duration equal to or greater than the maximum propagation
time. It reduces the chance of collision and improves efficiency. After the station finds the line is idle, it
follows these steps:
2. With probability q=1- p, the station waits for the beginning of the next time slot and checks
the line again.
3
Channel estimation in mobile wireless system based on OFDM
In order to provide reliability and high data rate communication in modern mobile
wireless time variant channel systems.
WINNER II provides two types of models. The generic models the more accurate model – it
aims to be applicable for many different simulations and cover many scenarios with several
combinations of large- and small- scale parameters. The CDL models a reduced-complexity
version of the generic model. It has fixed large-scale and small-scale parameters, which are
intended to provide average channel characteristics. WINNER model contain both multipath
fading channel and AWGN channel model in mobile wireless system.[7]
4
Channel estimation in mobile wireless system based on OFDM
1.5 Methodology
Our methods of work are organized and accomplished through a sequence of stages.
Literature
Block diagram
Signal module
Simulation
Testing
Result
5
Channel estimation in mobile wireless system based on OFDM
CHAPTER TWO
Literature Review
Background of OFDM
OFDM is becoming widely applied in wireless communications systems due to its high rate
transmission capability with high bandwidth efficiency and its robustness with regard to multi-
path fading and delay. It has been used in digital audio broadcasting (DAB) systems, digital
video broadcasting (DVB) systems, digital subscriber line (DSL) standards, and wireless LAN
and channel estimation techniques.
OFDM can be used effectively to avoid the effect of frequency-selective fading and narrowband
interference from parallel closely spaced frequencies in mobile networks. One of the desirable
features of OFDM is its robustness to the multipath induced inter- symbol interference. On the
other hand due to the frequency selective fading of the dispersive wireless channel, some sub
channels may face deep fades and degrade the overall system performance.
In order to compensate the frequency selectivity, techniques such as error correcting code and
diversity have to be used. Orthogonal frequency division multiplexing can accommodate
high data rate in the mobile wireless systems in order to handle multimedia services. It is
6
Channel estimation in mobile wireless system based on OFDM
important to understand the OFDM technology because the channel estimation is an integral part
of OFDM system. OFDM technology can be used effectively to avoid the effect of
frequency-selective fading and narrowband interference from parallel closely spaced
frequencies in mobile networks. If there is no orthogonally in the channel, inter-channel
interference (ICI) can be experienced and reduces the multipath fading. The basic idea was to use
parallel data and FDM with overlapping sub channel to combat impulsive noise and multipath
distortion and fully utilize bandwidth.[5]
∫ cos(2πfont)cos(2πfomt)dt=0
Sub-carriers in OFDM systems: Each subcarrier in an OFDM system is a sinusoid with
a frequency that is an integer multiple of fundamental frequency. Each subcarrier can be
expressed as a Fourier series component of the composite signal, i.e. an OFDM symbol.
The subcarriers waveform can be mathematically expressed as:
S(t)=cos(2πfct+Ɵk)=an cos(2πfont)+bnsin(2πfont)
Cyclic Prefix: The Cyclic Prefix (CP) or Guard Interval is a periodic extension of the last
part of an OFDM symbol that is added to the front of symbol in a transmitter, and is
removed at the receiver before demodulation. Cyclic prefix acts as a guard interval. It
7
Channel estimation in mobile wireless system based on OFDM
eliminates the inter-symbol interference from the previous symbol. It acts as a repetition
of the end of the symbol, thus allowing the linear convolution of a frequency–selective
multipath channel to be modeled as circular convolution which in turn may be
transformed to the frequency domain using a discrete Fourier transform. This approach
allows for simple frequency–domain processing such as channel estimation.
Modulation: In an OFDM system, the high data rate information is divided into small
packets of data which are placed orthogonal to each other. This is achieved by
modulating the data by a modulation technique such as QPSK and QAM.
Demodulation: After this, FFT is performed and the serial data obtained is converted
into the parallel signal. A demodulator is used to get back the original signal.
completely maintained with a small price in a loss in SNR, even though the signal passes through
a time dispersive fading channel, by introducing a cyclic prefix (CP). [4]
Where:
x N n , n N g , N g 1,..., 1
xf n
2. Guard interval, xn , n 0,1,..., N 1
Y k X k H k I k W k
k 0,1,..., N 1
9
Channel estimation in mobile wireless system based on OFDM
6. Output,
7. Channel estimation, Y k
X e k k 0,1,..., N 1
H e k
10
Channel estimation in mobile wireless system based on OFDM
The transmission channel (radio path) of a radio communication system is in most cases a
multipath channel. When changes take place in the propagation environment e.g. the radio
stations are mobile, reflectors and scatters are moving, or the medium itself (troposphere,
ionosphere) is changing, then the channel response will also change as a function of time, the
radio path is fading. Time-variant channel estimation of modern mobile wireless communication
systems is used to achieve a reliable mobile wireless system by increasing the capacity,
bandwidth efficiency, and the data rate. Time-variant channel is a channel which has the property
of changing over time. The time variant channel has the characteristic of a signal which changes
at the same rate as the changes in the communication signal. The channel normally has the
11
Channel estimation in mobile wireless system based on OFDM
Doppler Effect which caused by Doppler spread of multipath propagation . Time invariant
channel can be modeled as a linear filter with impulse response h(t)and its Fourier
transform, the system function H ( f ) . Let h(t ) be the transmitted sequence over a time-invariant
channel h(t ), then the received sequence y (t ) is given in the time domain by:[4]
Where: n(t) : Additive White Gaussian Noise (AWGN) with zero mean and variance
E{|n(t)|}= σn2
The time-variant system is the system which is affected by either relative motion between user
who is moving with the velocity (v ) or by movement of objects in the channel. This channel has
either the same changing or one that is faster than the rate of the communication signal. The
model for mobile wireless channel with additive white noise in time domain can be written as:
Where:
n(t): Additive White Gaussian Noise (AWGN) with zero mean and
The linear time-variant channel from the multipath propagation of the frequency selective
channel is a filter with the following baseband equivalent impulse response.
12
Channel estimation in mobile wireless system based on OFDM
τi : delay
δ(t-Ti): delta function : Number of resolvable multipath components: Phase rotation with carrier
frequency fc and delay τi(t)
If want to express the complex-valued, baseband time-variant impulse response in terms of the
effect of the transmit filter together with the matched receive filter, the time-variant channel
model can be expressed as.
The different delay taps at the receiver side and the only one signal which transmitted at the
transmitter
T T1 T2 T3 T4 T
Figure 2.3 Power delay profile of the multipath channel with delay τi [6]
The channel estimation of the time-variant frequency response h(m)can significantly improve the
performance of the receiver.
13
Channel estimation in mobile wireless system based on OFDM
FD = v/*cos
MS
Where; V = moving speed user
14
Channel estimation in mobile wireless system based on OFDM
TC =1/4Bd
Bc =𝟏/𝟐𝑻𝒅
Assuming that the bandwidth of the channel is much less than channel coherence bandwidth
Bc,and Td is maximum delay spread.
15
Channel estimation in mobile wireless system based on OFDM
16
Channel estimation in mobile wireless system based on OFDM
In a fast fading channel, the channel impulse response changes rapidly within the symbol
duration of the signal. Due to Doppler spreading, signal undergoes frequency dispersion leading
to distortion. Transmission involving very low data rates suffers from fast fading.
Slow Fading
In such a channel, the rate of the change of the channel impulse response is much less than the
transmitted signal. We can consider a slow faded channel a channel in which channel is almost
constant over at least one symbol duration.
Time
OFDM symbol
17
Channel estimation in mobile wireless system based on OFDM
Carriers
Part of the sub-carriers are always reserved as pilot for each symbol
Time
Carriers
18
Channel estimation in mobile wireless system based on OFDM
estimation can be calculated using the extracted subcarriers which are known to the receiver. The
corresponding equation can be written as the following equation.
HLS(kp)=Y(KP)/X(KP)
=H(KP) +n(KP)
The MMSE estimator employs the second-order statistics of the channel conditions to minimize
the mean-square error. The MMSE estimator yields much better performance than LS estimators,
especially under the low SNR scenarios.
19
Channel estimation in mobile wireless system based on OFDM
CHAPETER THREE
SYSTEM MODEL
3.1 Signal model for flat fading time-variant channel
OFDM is used to transform the time-variant frequency-selective channel into the time-variant
frequency-flat subcarriers. To avoid the inter-symbol interference between OFDM symbols,
therefore the cyclic prefix is preceded. We consider the symbol sequence x[m] with symbol rate
1/Cover a flat fading time-variant channel. The symbol TS duration is much longer than the
delay spread Td of the channel. i.e Td≫Ts. The symbol m represents the discrete time. The
channel baseband equivalent is h(𝝉 ,t). The equivalent baseband represents the physical channel;
transmit filter and the matched receiving filter.[8]
z[m] : Additional white Gaussian noise with zero mean and variance σn
Where:
20
Channel estimation in mobile wireless system based on OFDM
As we know that the performance of the receiver depends on the accurately estimate of the time-
variant frequency response.
The time-variant multi-user detector performs when the linear LS and MMSE receiver detects
the data using the received vector y[m]as the spreading matrix S ,and the time variant frequency
response.
The OFDM system for pilot based block type channel estimation is shown in figure below.
21
Channel estimation in mobile wireless system based on OFDM
In block-type pilot based channel estimation, each subcarrier in an OFDM symbol is used in such
a way that all sub-carriers are used as pilots. The estimation of the channel is then done using
Least Square Estimator and Minimum Mean Square Error Estimator.
The system shown in Fig. 1.3 is modeled using the following equation:
where
X=[XO X1 X2 . . . XN-1]T
Y=[YO Y1 Y2 . . . YN-1]T
W=[WO W1 W2 . . .WN=1]T
H=[ho h1 h2 h3 . . . HN-1]T
22
Channel estimation in mobile wireless system based on OFDM
If inter symbol interference is eliminated by the cyclic prefix, then the system shown in the
Fig3.1 can be modeled using the equation
Yk=Hkxk+wk K=0………………..N-1
Y=XFh+W
W 00 ….. W 0(N-1)
F= N N
W (N-1)(N-1)
N ….. WN
H -1
MMSE =FRhy R yyY
where
H
Rhy=E{hy }
Ryy=E{yyh}
23
Channel estimation in mobile wireless system based on OFDM
multiple antennas at the transmitter and receivers to open up additional sub-channels in spatial
domain. The WINNER model generates the time-variant channel impulse responses (CIR).
The Network layouts for one radio link for WINNER model
24
Channel estimation in mobile wireless system based on OFDM
In order to achieve a reliable communication system capable of meeting the demands of the
future, it is important to estimate the time-variant channel as accurately as possible, i.e. as close
to the true channel as possible. In order to estimate the channel accurately, the velocity of the
user must be estimated. [6]
The maximum velocity of the user V max: 28.5 m/s = 102.6 km/h
The WINNER II channel model uses OFDM technique. The channel model uses 100 MHz Radio
frequency bandwidth. The velocity of the Mobile is 28.5 m/s (102.6 km/h), the center frequency
set to 2.0 GHz, the sample frequency of the channel fs=1𝑇𝑠is 43.6 MHz and the sampling time
is1/𝑓𝑠. The channel links level has been broken down into three types of parameters, the big
scale, the medium scale and the small scale parameters. In the WINNER model the large scale
parameters are fixed. The large scale propagation model is the model which takes the average
received power of the path loss over longer distance between the Base Station and Mobile
Station. Small scale parameters are usually used on multipath channel and the parameters are
about equal to value of the wavelength of the fading signal.[6][7]
25
Channel estimation in mobile wireless system based on OFDM
Chapter four
Simulation results and Discussion
In this project, an OFDM system is simulated using Mat lab aim is to measure the performance
of simulated OFDM system under different channel estimation techniques,(LS and MMSE).
The system is designed using the following commands and functions in Mal lab.
Random data generation: The input random data is generated by randn() function in Mat lab.
Modulating data: The data to be transmitted on each carrier is modulated into a QAM and M-
ary PSK format
Inverse Fourier Transform: The purpose of Inverse Fourier Transform is to find the
corresponding time waveform. This is done using the command IFFT in Mat lab Channel model:
A channel model is then applied to the transmitted signal. In this channel the signal-to-noise is
varied and multipath path is then introduced. The signal to noise ratio is set by adding a known
amount of white noise to the transmitted signal.
In Figure 4.1, the Bit error rate (BER) versus the average SNR is plotted for the proposed block-
type pilot channel estimation schemes over a fading channel with a bandwidth of 1500 kHz,
16QAM modulation, DFT size N= 64,and a cyclic prefix L= 8 and for a 64 sub carrier OFDM
system. Bit Error Rate (BER) Vs Signal to noise ratio (SNR) while applying least square (LS),
minimum mean-square error (MMSE) as shown below. in figure 4.3 the value of L=16 and size
of N=128 .
26
Channel estimation in mobile wireless system based on OFDM
27
Channel estimation in mobile wireless system based on OFDM
Figure 4.2 symbol Error Rate (SER) as a function of signal to noise Ratio((SNR(db))
Discussion
Adding a LMS and MMSE iterative algorithm to system, improves the channel estimation
performance. Simulation results proved the acceptable BER performance of iterative channel
estimation algorithm, which is closed to the ideal channel and we analyzed that the low
complexity proposed receiver including LMS and MMSE algorithm, has improve efficiency
time variant channel. In this study a low complexity structure of receiver was proposed so that
the LS method and MMSE were used for initial channel estimation. the performance of two
types of estimators (LSE and MMSE estimators) has been theoretically and experimentally
evaluated for block type pilot arrangements in figure 4.1 and in figure 4.2 for specific value
OFDM sub carriers and channel function
28
Channel estimation in mobile wireless system based on OFDM
Chapter five
CONCLUSIONS AND RECOMMENDATION
5.1 CONCLUSIONS
An important and crucial part of modern mobile wireless systems is channel estimation, which
helps the system deliver high data rates and achieve the maximum transmission rate by
accurately estimating the wireless channel .Wireless systems are expected to require high data
rates with low delay and low bit-error-rate (BER).In such situations, the performance of
wireless communication systems is mainly governed by the wireless channel environment so the
OFDM system time -variant channel estimation one method to improve the performance mobile
29
Channel estimation in mobile wireless system based on OFDM
wireless channel by decreasing bit –error-rate and increasing data rate. Orthogonal frequency
division multiplexing (OFDM) provides an effective and low complexity means of
eliminating inter symbol interference for transmission over frequency selective fading
channels. This technique has received a lot of interest in mobile communication research as the
radio channel is usually frequency selective and time variant. This project fully reviews channel
estimation strategies in OFDM systems. It describes block-type pilot-channel estimators, which
may be based on least square (LS), minimum mean-square error (MMSE) to improve channel
performance in mobile wireless time-variant and frequency selective fading channel. What we
can conclude from this project is error minimize transmission and deliver high data rat in mobile
wireless system. With increase multimedia application, large amount of data is done transmitted
over wireless communications.
5.2 RECOMMENDATION
In order to achieve a reliable communication system capable of meeting the demands of the
future, it is important to estimate the time-variant channel as accurately as possible, i.e. as close
to the true channel as possible. In order to estimate the channel accurately, in addition to OFDM
channel estimation using LS and MMSE method the velocity of the user must be consider in
mobile time variant channel. For Future work investigation estimating the velocity user in a
appropriate method must be consider and has not compared the polynomial time-varying OFDM
channel estimation with the WINNER model so that the future work should include even
30
Channel estimation in mobile wireless system based on OFDM
this model because the basis of polynomial is not restricted to time limited and band-limited
functions.
Referees
[1] David Tse and Pramod Viswanath
13978-0-521-84527-4.
31
Channel estimation in mobile wireless system based on OFDM
[7] https//www.ist-winner.org/
Appendix
% simulation for channel estimation techniequs using LS, LMMMSE, methode
% Ref "Synchronization and Channel Estimation in OFDM
clc
clear all
nCP = 8;%round(Tcp/Ts);
nFFT = 64;
NT = nFFT + nCP;
F = dftmtx(nFFT)/sqrt(nFFT);
BW = 1500;
EsNodB = 0:5:40;
snr = 10.^(EsNodB/10);
beta = 17/9;
32
Channel estimation in mobile wireless system based on OFDM
M = 16;
modObj = modem.qammod(M);
demodObj = modem.qamdemod(M);
L = 5;
ChEstLS = zeros(1,length(EsNodB));
ChEstMMSE = zeros(1,length(EsNodB));
TD_ChEstMMSE = zeros(1,length(EsNodB));
TDD_ChEstMMSE = zeros(1,length(EsNodB));
TDQabs_ChEstMMSE = zeros(1,length(EsNodB));
for ii = 1:length(EsNodB)
disp('EsN0dB is :'); disp(EsNodB(ii));tic;
ChMSE_LS = 0;
ChMSE_LMMSE=0;
TDMSE_LMMSE =0;
TDDMSE_LMMSE=0;
TDQabsMSE_LMMSE =0;
for mc = 1:MC
% Random channel taps
g = randn(L,1)+1i*randn(L,1);
g = g/norm(g);
H = fft(g,nFFT);
% generation of symbol
X = randi([0 M-1],nFFT,1); %BPSK symbols
XD = modulate(modObj,X)/sqrt(10); % normalizing symbol power
x = F'*XD;
xout = [x(nFFT-nCP+1:nFFT);x];
% channel convolution and AWGN
y = conv(xout,g);
nt =randn(nFFT+nCP+L-1,1) + 1i*randn(nFFT+nCP+L-1,1);
No = 10^(-EsNodB(ii)/10);
y = y + sqrt(No/2)*nt;
% Receiver processing
y = y(nCP+1:NT);
Y = F*y;
% frequency doimain LS channel estimation
HhatLS = Y./XD;
ChMSE_LS = ChMSE_LS + ((H -HhatLS)'*(H-HhatLS))/nFFT;
% Frequency domain LMMSE estimation
Rhh = H*H';
W = Rhh/(Rhh+(beta/snr(ii))*eye(nFFT));
HhatLMMSE = W*HhatLS;
ChMSE_LMMSE = ChMSE_LMMSE + ((H -HhatLMMSE)'*(H-HhatLMMSE))/nFFT;
% Time domain LMMSE estimation
ghatLS = ifft(HhatLS,nFFT);
Rgg = g*g';
33
Channel estimation in mobile wireless system based on OFDM
WW = Rgg/(Rgg+(beta/snr(ii))*eye(L));
ghat = WW*ghatLS(1:L);
TD_HhatLMMSE = fft(ghat,nFFT);%
TDMSE_LMMSE = TDMSE_LMMSE + ((H -TD_HhatLMMSE)'*(H-
TD_HhatLMMSE))/nFFT;
end
ChEstLS(ii) = ChMSE_LS/MC;
ChEstMMSE(ii)=ChMSE_LMMSE/MC;
TD_ChEstMMSE(ii)=TDMSE_LMMSE/MC;
TDD_ChEstMMSE(ii)=TDMSE_LMMSE/MC;
TDQabs_ChEstMMSE(ii)=TDQabsMSE_LMMSE/MC;
toc;
end
% Channel estimation
semilogy(EsNodB,ChEstLS,'r','LineWidth',2);
hold on;grid on;xlabel('EsNodB'); ylabel('Channel MSE');
semilogy(EsNodB,ChEstMMSE,'k','LineWidth',2);
semilogy(EsNodB,TD_ChEstMMSE,'g','LineWidth',2);
semilogy(EsNodB,TDD_ChEstMMSE,'m','LineWidth',2);
semilogy(EsNodB,TDQabs_ChEstMMSE,'b','LineWidth',2);
34
Channel estimation in mobile wireless system based on OFDM
35
Channel estimation in mobile wireless system based on OFDM
d(i)=-1;
end
end
for i=1:64
X(i,i)=d(i);
end
%Calculation of G[The channel Matrix]
%The channnel is...
tau=[0.5 3.5];%The fractionally spaced taps..
%Generation of the G matrix...
for k=1:64
s=0;
for m=1:2
s=s+(exp(-j*pi*(1/64)*(k+63*tau(m))) * (( sin(pi*tau(m)) / sin(pi*(1/64)*(tau(m)-k)))));
%Go through the above cited paper for the theory behind the formula
end
g(k)=s/sqrt(64);
end
G=g';%Thus, the channel vector is evaluated..
H=fft(G);% In the freq domain..
XFG=X*H;
n1=ones(64,1);
n1=n1*0.000000000000000001i;%Just to ensure that the function awgn adds 'complex Gaussian
noise'..
noise=awgn(n1,8);%Assuming the 'channel learning' is happening at 8db..
variance=var(noise);
N=fft(noise);
Y=XFG+N;
36
Channel estimation in mobile wireless system based on OFDM
%Hmmse=inv(X)*Y;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%
H_ls=(inv(X)) * Y;
Hls=zeros(64,64);
for i=1:64
Hls(i,i)=H_ls(i);
end
%EVALUATION OF Hmmse
%Hmmse=F*Rgg*inv(Rgy)*Y;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%
u=rand(64,64);
F=fft(u)*inv(u);%The 64 X 64 twiddle factor matrix..
I=eye(64,64);
Rgy=Rgg * F'* X';
Ryy=X * F * Rgg * F' *X' + variance * I;
for i=1:64
yy(i,i)=Y(i);
end
Gmmse=Rgy * inv(Ryy)* Y;
H_mmse=fft(Gmmse);
for i=1:64
Hmmse(i,i)=H_mmse(i);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%
%Fine..the channels have been estimated , now is the time for real time simulations..
for n=1:6
SNR_send=5*n;
error_count_ls=0;%Clear the error_count..
error_count_mmse=0;%Clear the error_count..
37
Channel estimation in mobile wireless system based on OFDM
end
for i=1:64
X(i,i)=d(i);
end
XFG=X*H;%Let it go through the actual channel...
n1=ones(64,1);
n1=n1*0.000000000000000001i;%Just to ensure that the function awgn adds 'complex gaussian
noise'..
noise=awgn(n1,SNR_send);
variance=var(noise);
N=fft(noise);
Y=XFG+N;%o/p got by the receiver...
%The receiver begins....
% I:LS ESTIMATOR BASED RECEIVER:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%
38
Channel estimation in mobile wireless system based on OFDM
for k=1:64
if(I(k)~=d(k))
error_count_mmse=error_count_mmse+1;
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end%End of the 1000 run simulation..
ser_ls(n)=error_count_ls/64000;
ser_mmse(n)=error_count_mmse/64000;
ser_ls
ser_mmse
SNR(n)=SNR_send;
end;
hold on;
semilogy(SNR,ser_ls,'b*');
semilogy(SNR,ser_ls,'b-');
semilogy(SNR,ser_mmse,'kv');
grid on;
xlabel('SNR in DB'):
ylabel('Symbol Error Rate');
title('PLOT OF SNR V/S SER FOR AN OFDM SYSTEM WITH MMSE/LS ESTIMATOR
BASED RECEIVERS');
39