




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Lab4:1. Write a program to calculate the signal interference ratio (SIR) in the forward link, and repeats it by randomly changing the position of the MS. After a number of simulations, use the simulated results to draw the histogram of the SIR (S=I). Try to obtain histograms with different path loss
2、 exponent n and cluster size N. Conclude your results.The co-channel interference in the forward link can be characterized in figure 1. A MS will be interfered by the co-channel base station. In our simulation, we consider the 18 co-channel cell, including 6 cells in the first loop and 12 cells in t
3、he second, no matter what the cluster size N is. Figure 1 forward link co-channel interference(1) Firstly, we should randomly choose the position of the MS in the cell. Since the cell is hexagon which is hard to handle we cut and paste it into a square. As we can see in figure 2, the center of the c
4、oordination is the center of the cell. The square we choose is ABCD. We then randomly choose a pair of x and y as the coordinate of MS. If MS locates in triangle 1 we cut and paste it to triangle 3 and if it locates in triangle 2 we move it to triangle 4. We assume the range of the base station is 0
5、.1 as radius of cluster is 1. For the MS who located within this area, we change its distance to be 0.1 as it is too close to the base staion.Figure 2 randomly choose the position of MS in a cellMatlab code: RandPOS.mfunction z = RandPOS(m) %* get random value of x,y within a square *%x = 1.5*rand(m
6、,1)-1; y = sqrt(3)*rand(m,1)-0.5*sqrt(3); %* use for loop to cut the square into a hexagon *%for k=1:m if x(k)-1 & x(k)(1+x(k)*sqrt(3) x(k)=x(k)+1.5; y(k)=y(k)-sqrt(3)/2; elseif x(k)-1 & x(k)-0.5 & y(k)-(1+x(k)*sqrt(3) x(k)=x(k)+1.5; y(k)=y(k)+sqrt(3)/2; end %* if the MS is too nearly to the base st
7、ation *% if sqrt(x(k)2+y(k)2)0.1 x(k)=0.1; y(k)=0; end end z=x+j*y;(2) Secondly, we should calculate the coordinate of co-channel base station. As we know the cluster size N we can calculate the (i, j) pair by the formulaN=i2+i*j+j2. Matlab code: ClusterN.mfunction ii,jj = ClusterN(N) for a = 0:sqrt
8、(N) for b = 0:sqrt(N) if a2+b2+a*b = N ii = a; jj = b; end; %end if end; %for jj end;(3) Taking N=7 as example, we can calculate the coordinate by referring to figure 3. According to the value of I j pair and angles in the figure we can get the coordinate of the first loop by the formula: location(k
9、)=3(iejpi6+jpi3k-1+jejpi6+jpi3k), where k=1, 2.6. The second loop can be calculated by the first loop. There are two kinds of second loop co-channel base station. One can be calculated by double the coordinate of the first loop points. The other can be done by adding coordinates of adjacent first lo
10、op point as it is the diagnose of a parallelogram. Examples of those two kinds of points, point 1 and 2, can be found in figure 3diagnose of a parallelogramdouble the coordinate of the first loop pointsFigure 3 calculate coordinate of co-channel base station by I J pairMatlab code: AdjCel.mfunction
11、CelLoc = AdjCel(N) ii,jj = ClusterN(N) CelLoc = zeros(18,1)+j*zeros(18,1); CelLoc(1) = sqrt(3)*( ii*exp(j*pi/6) + jj*exp(j*pi/6+j*pi/3); for k=2:6 CelLoc(k) = CelLoc(k-1)*(0.5+sqrt(3)/2*j); end; for i = 1:6 CelLoc(2*i+5) = CelLoc(i)+CelLoc(i); CelLoc(2*i+6) = CelLoc(i)+CelLoc(i+1); end; CelLoc(18) =
12、 CelLoc(6)+CelLoc(1);(4) Now we have coordinates of MS and co-channel base station, so we can calculate SIR by the formula SIR=(dms)-ni=118(dbsi)-n , where dms stands for the distance from MS to the center while dbsi stands for the distance from the co-channel base station to the MS. We simulated it
13、 100000 times.Matlab code:clear all close all N = input(the cluster size N =); n = input(the path loss exponent n =)M = 100000; MSPos = RandPOS(M); CelLoc = AdjCel(N); ds = (abs(MSPos).-n; ditemp1 = abs(MSPos*(ones(18,1)-ones(M,1)*CelLoc); ditemp2 = ditemp1.-n; di = ditemp2*ones(18,1); SIR = 10*log(
14、ds./di); hist(SIR,-20:250) title(Histogram); xlabel(SIR(dB); ylabel(numbers of MS);(5) Rsults:We will simulate the SIR of the co-interference of the forwarding link with different cluster size N and path lose exponent n and plaint the histogram of each condition. To make a comparison, we chose two g
15、roup of n and N as: When n=3.6, we let N=1,3,4,7,12.When N=7, we let n=2,3,3.5,4.Figure 5 histogram of SIR while N=1, n=3.6(dd0)-n . d0 is the range of the base station.If the random MS is too nearly to the base station, dd0 or d=0, the SIR will be too high. So when dd0, we let d=d0 to remove the BS
16、.The smallest value of d is 0.1. It related the largest value of SIR.Figure 6 histogram of SIR while N=3, n=3.6Figure 7 histogram of SIR while N=4, n=3.6Figure 8 histogram of SIR while N=7, n=3.6Figure 9 histogram of SIR while N=12, n=3.6Figure 10 histogram of SIR while N=7, n=2Figure 11 histogram o
17、f SIR while N=7, n=3Figure 12 histogram of SIR while N=7, n=3.5Figure 13 histogram of SIR while N=7, n=4We can see from the histogram that the average SIR increase with N increase. Since the distance between the cluster and the co-interference cell is larger when N is larger, so the co-interference
18、is smaller. For a constant cluster size N, the SIR is larger as the path lose exponent becomes larger. Since when n is changing, the co-interference power is reduced much more than the signal power. Even though the system will lose more power, the SIR is becomes larger.2. Write a program to calculat
19、e the SIR in the reverse link, and repeats it by randomly changing the positions of the MSs. ( Note that the interferences in the reverse link are generated by co-channel MSs and is different from the interference in the forward link. ) After a number of simulations, use the simulated results to dra
20、w the histogram of the SIR. Try to obtain histograms with different path loss exponent n and cluster size N. Conclude your results.The co-channel interference in the reverse link can be characterized in figure 4. A BS will be interfered by the co-channel MS. In our simulation, we consider the 18 co-
21、channel cell, including 6 cells in the first loop and 12 cells in the second, no matter what the cluster size N is.Figure 14 reverse link co-channel interferenceThe procedure is pretty much the same as forward link we talked about early. Firstly we randomly choose the position of MSs in the target c
22、ell and co-channel cells. In order to doing this we can use the randPOS function in forward link. The coordinates of MSs can be calculated by adding it to coordinates of co-channel base station. Then we calculate the SIR by formula SIR=(dbs)-ni=118(dmsi)-n where dbs stands for the distance between t
23、he target BS and MS while dmsi stands for the distance from the co-channel MS to the center. Matlab code:% Reverse Link close all clear all N = input(the cluster size N =); n = input(the path loss exponent n =);M = 100000; MSPos = RandPOS(M); CelLoc = AdjCel(N); pos=ones(18,M);for i=1:18 pos(i,:)=Ra
24、ndPOS(M);endIntMS = pos+ones(M,1)*CelLoc; ds = (abs(MSPos).-n; ditemp = (abs(IntMS).-n; di = ditemp*ones(18,1); SIR = 10*log(ds./di); hist(SIR,-20:150) title(pdf of SIR); xlabel(SIR(dB); ylabel(pdf); We will simulate the SIR of the co-interference of the forwarding link with different cluster size N
25、 and path lose exponent n and plaint the histogram of each condition. As what we did for the forward link. To make a comparison, we chose two group of n and N as: When n=3.6, we let N=1,3,4,7,12.When N=7, we let n=2,3,3.5,4.The result is :Figure 15 histogram of SIR while N=1, n=3.6Figure 16 histogra
26、m of SIR while N=3, n=3.6Since we have removed the base station when generate the random position of MS.when distance of MS 0.1, we let it to be point (0.1, 0) . For the forward link, there is largest value SIR when it is 0.1 and it is a constant. For the reverse link, when the randomly MS is at (0.1,0), but the MS on the co-interference cell is also randomly, so the SIR of this situation is not a c
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年江蘇省常州市新北區(qū)外國(guó)語(yǔ)學(xué)校英語(yǔ)八年級(jí)第二學(xué)期期中學(xué)業(yè)質(zhì)量監(jiān)測(cè)試題含答案
- 體育理論考試試題及答案
- 2025年婚姻性格分歧處理協(xié)議書(shū)
- 2025年餐飲企業(yè)信息保密協(xié)議規(guī)定
- 2025年租賃合同定金協(xié)議書(shū)范本
- 2025年學(xué)生租賃協(xié)議官方文本
- 2025年標(biāo)準(zhǔn)評(píng)估協(xié)議案例
- 2025年地質(zhì)環(huán)境監(jiān)測(cè)設(shè)備購(gòu)銷協(xié)議
- 企業(yè)合并與收購(gòu)中的風(fēng)險(xiǎn)識(shí)別
- 供應(yīng)鏈管理中的合規(guī)監(jiān)管與風(fēng)險(xiǎn)管控
- 體彩筆試試題及答案
- 教學(xué)設(shè)計(jì):2.1 聲音的產(chǎn)生與傳播
- 龍舟競(jìng)渡 y-2024-2025學(xué)年人美版(2024)初中美術(shù)七年級(jí)下冊(cè)
- ISO 37001-2025 反賄賂管理體系要求及使用指南(中文版-雷澤佳譯-2025)
- 水利工程監(jiān)理規(guī)劃(標(biāo)準(zhǔn)范本)
- DB4403-T 81-2020 綠化遷移技術(shù)規(guī)范
- 《剪映+即夢(mèng)Dreamina:AI文案、圖片與視頻生成技巧大全》 課件 第1-7章 通過(guò)剪映生成AI文案-使用智能畫(huà)布二次創(chuàng)作
- 2025年江蘇鹽城燕舞集團(tuán)有限公司招聘筆試參考題庫(kù)含答案解析
- 員工質(zhì)量意識(shí)培訓(xùn)
- 公路工程安全保證體系及措施
- PB編程培訓(xùn)資料
評(píng)論
0/150
提交評(píng)論