Code covered by the BSD License  

Highlights from
Simulation of LMMSE

Simulation of LMMSE

by

 

This code is a demonstration of how LMMSE filter is implemented inside of a communication system

LMMSEsimulation.m
%Author: Alex Dytso
%Date: 12/19/2012
% This is a simulation of LMMSE filter applied to the ISI channel
% Note: This code must be used with function LMMSE()

clc, clear all


N=6;% length of transmitting sequence

x=(-1).^(floor(2*rand(1,N))) % creating PAM symbols






%%%%Sending Throught the Channel
g=[0.16  0.45*j];% Channel Impulse response


Y=conv(g,x);

%%%% Adding Noise
SNRdB=10;

r=awgn(Y,SNRdB);

N0=1/10^(SNRdB/11);

%Linear MMSE Filtering
Xh = LMMSE(g,r,N0,N );

%Decoding

Xh(find(Xh>0))=1;
Xh(find(Xh<0))=-1;

Xh

Contact us