06-08-2016, 03:24 PM
MATLAB CODE:
1. CAPACITY WITH AND WITHOUT CSIT FOR 5x10 MIMO SYSTEM
clc;clearall;closeall; Nt=5;%---------No. of transmitter antennas Nr=10;%---------No. of receiver antennas snrdB=0:1:10;%-----------snr values in dB, for which capacity will be computed snr=10.^(snrdB/10);Cut=zeros(1,length(snr));%---------capacity of a uninformed transmitter i.e., without CSIT Cit=zeros(1,length(snr));%---------capacity of an informed transmitter i.e., with CSIT Cut_tot=zeros(1,length(snr));Cit_tot=zeros(1,length(snr));count=100;fork=1:countH=randn(Nr,Nt)+i*randn(Nr,Nt);%---------channel matrix H [U,S,V]=svd(H);%----------singular value decomposition of Hsv=diag(S);%--------------non-zero singular values of H ev=sv.*sv;%--------------eigen values of H r=rank(H);%--------------computing rank of H fori=1:length(snr)%CAPACITY CALCULATION FOR EQUAL POWER ALLOCATION WITHOUR CSITforj=1:rCut(i)=Cut(i)+log2(1+((snr(i)/Nt)*ev(j)));end %WATER POURING ALGORITHM FOR CALCULATION OF CAPACITY WITH CSIT p=1;Pi=zeros(1,r); while(Pi(r-p+1)<=0)x=0;forj=1:r-p+1x=x+(1/ev(j));end Mu=(Nt/(r-p+1))*(1+(1/snr(i))*x);forj=1:r-p+1Pi(j)=Mu-(Nt/((snr(i))*ev(j)));
The antenna is important to any wireless communication system in order to enable the transition from electromagnetic waves to an induced alternating current in the transmission line or the transition from alternating current to electromagnetic waves. In order to happen this there are two fundamental factors to antenna design. This chapter presents the fundamentals of antennas so that the importance of antenna gain and impedance matching can be properly understood. A number of concepts are related to impedance matching or antenna gain such as directivity, efficiency, polarisation, reciprocity and radiation resistance are introduced. A multiple input multiple output (MIMO) antenna is required to consist of an array of several antenna elements. It was found that this is achieved best by separating the elements in a linear or planar form at least half a wavelength in the horizontal or azimuth plane.