vblast

vblast - %The row thatminimises the norm for n=1:nt...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
clear all; clc; nt=2; nr=2; %Number of receive antennas FRAME=100; M=4; %Number of levels Pt=1; %Total Power Pavg=Pt; nt; %Average power snr_dB=0:100; %SNR range in dB snr=10.^(snr_dB./10); C=qammod(0:M-1,M); RATIO=[]; k=1; for k=1:length(snr); R=0; for j=1:FRAME msg=randint(nt,100,[0 M-1]); %message generation b=qammod(msg,M); %QAM modulation Eb=abs(b); length(b); %Energy per bit a=b; Eb; %UnitEnergy signal h= sqrt(1/2)*((randn(nr,nt))+ sqrt(-1)*randn(nr,nt)); %channel matrix v=(1/ sqrt(2*snr(k)))*(randn(nr,length(h*a))); %noise r1=(1/nt)*h*a +v; %receivedvector % %detection starts from this point g=pinv(h); %Moore Penrose pseudoinverse normG = sum(abs(g).^2,2); %Calculating norm K = find(normG == min(normG));
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %The row thatminimises the norm for n=1:nt Wk=g(K,:); %Weighting vector Yk=Wk*r1; for i=1:100 ak=abs(C-Yk(i)); b(i)=find(ak==min(ak)); est(i)=C(b(i)); %quantisation det(K,i)=qamdemod(est(i),M); end r1=r1-h(:,K)*est; h(:,K)=zeros(size(h(:,K))); %zeroing the column of h g=pinv(h); %Moore Penrose pseudoinverse g(K,:)=; normG = sum(abs(g).^2,2); %Calculating norm K = find(normG == min(normG)); %The row that minimises the norm end [number,ratio]=biterr(msg,det); R=R+ratio; end RATIO=[RATIO;R]; end figure(1); semilogy(snr_dB,RATIO/FRAME,'r*-'); title('BER Plot for V-BLAST'); xlabel('EbN0 - dB'); ylabel ('BER') x...
View Full Document

This note was uploaded on 02/15/2011 for the course EEE 554 taught by Professor Duman during the Spring '10 term at ASU.

Page1 / 2

vblast - %The row thatminimises the norm for n=1:nt...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online