11.09.2015 Views

Lecture 5

Lecture 5

Lecture 5

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MIMO Channel Equalisation MATLAB Programming Conclusions<br />

MATLAB Programing<br />

clc; clear all;<br />

nt = 4; nr = 4; d = 1000; MinErrs = 100; MaxData = 1e6; chs = 10;<br />

snr dB = 0:3:21; snr = 10.ˆ(snr dB/10); Lsnr = length(snr);<br />

berZF = zeros(1,Lsnr); berMMSE = zeros(1,Lsnr);<br />

for e = 1:chs<br />

disp([’ch ’ num2str(e) ’/’ num2str(chs)]);<br />

H = (randn(nr,nt)+sqrt(-1)*randn(nr,nt))/sqrt(2);<br />

G ZF = inv(H’*H)*H’;<br />

nErZF = zeros(1,Lsnr); nErMMSE = zeros(1,Lsnr); data = zeros(1,Lsnr);<br />

for z = 1:Lsnr<br />

disp([’ step ’ num2str(z) ’/’ num2str(Lsnr) ’: SNR(dB) = ’ num2str(snr dB(z))]);<br />

G MMSE = inv(H’*H + (1/snr(z))*eye(nt))*H’;<br />

while((nErZF(z)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!