This code will generate Hexagonal Cell Site in Matlab.
I’d used this Cell generation code in one of my Projects in which I’d to perform
Monte Carlo simulationwith users being generated in a hexagonal cell site
In this code, the cell radius was 1.4 units.
You can alter this. For eg. If your cell radius needs to be 1 unit then replace
1.40 by 1
2.42 (1.4 x 1.732) by 1.732 (1 x 1.732)
1.21 (1.4 x 0.866) by 0.866 (1 x 0.866)
2.10 (1.4 x 1.500) by 1.500 (1 x 1.500)
Also adjust xa, xb, ya & yb accordingly.
01 | % Yogesh Mhatre || IGOY.IN |
06 | %Generating a hexagon with centre (0,0)and radius 1.4 |
16 | % To generate 6 adjacent hexagon |
18 | a1=0+1.4*cos(t); % Upper hex |
23 | a2=0+1.4*cos(t); % Lower hex |
28 | a3=2.1+1.4*cos(t); % Right lower hex |
33 | a4=2.1+1.4*cos(t); % Right upper hex |
38 | a5=-2.1+1.4*cos(t); % Left upper hex |
43 | a6=-2.1+1.4*cos(t); % Left lower hex |
49 | xa=-0.75+1.5*rand(1,1); |
50 | ya=-1.2+2.4*rand(1,1); |
55 | yb=-0.65+1.3*rand(1,1); |
60 | plot(xra(i),yra(i),'k.'); |
62 | plot(xrb(i),yrb(i),'k.'); |
Dear harit
ReplyDeleteyour code for generating hexagonal cell site with random user is very useful.I have a similar project where I have to generate 19 hexagonal cells and generate 1000 random user in the first cell. Then I have to find the following:
a. Find cumulative distribution function of SINR in monte carlo simulation platform where SINR=Recieved power/(Interference power+Noise power). Re eived power will be from two nearest base statio, Interference power will be cumulative recieved power from rest 17 base station and i have equation for noise power. can you please help how to do it? My email add is shaz04@gmail.com. if you can help me please write me a mail. Thanks in advance. Shaz
Dear shaz, I have the same project as yours. Can you please help me how to do it? If you can help me than please write.My email ad is devd042@gmail.com. Thanks in advance. Debasish
ReplyDeletecan any one of you please email me the stuff you had related to this project ,i am even working on same project .
ReplyDeleteemail - burugupallirashmisai@gmail.com
Thank you
Dear Shaz, can u please email me how to find SINR with this. email id : sscd92@gmail.com.
ReplyDeleteThankx in advance