how located base station and user in hexagonal cell in MATLAB
12 ビュー (過去 30 日間)
古いコメントを表示
hello. i need to design 3 hexagonal cell and each cell contained of 1 base station and 3 user mobile. there is example what i need to design using MATLAB. i have to create the cell but do not know to located the base station and mobile user.
x_hexagon=[-1 -0.5 0.5 1 0.5 -0.5 -1];
y_hexagon=[0 -sqrt(3)/2 -sqrt(3)/2 0 sqrt(3)/2 sqrt(3)/2 0];
N=1;
M=2;
figure(1)
hold on
for nn=1:N
for mm=1:M
plot(x_hexagon+3*nn,y_hexagon+sqrt(3)*mm)
end
end
for nn=0:N-1
for mm=M-1
plot(x_hexagon+1.5+3*nn,y_hexagon+sqrt(3)/2+sqrt(3)*mm)
end
end
hold off
axis equal
end
2 件のコメント
Naga A
2015 年 10 月 16 日
You can locate the base stations at the center of the cell and generally the users are distributed randomly through out the cell .
For placing the base stations, find the center of the hexagon. For the first hexagon , you can find the base station location as follows:
base_station_x=(x_hexagon(1)+x_hexagon(4))/2
base_station_y=(y_hexagon(1)+y_hexagon(4))/2
May be you need to store the values of the hexagonal coordinates in order to find the center of each hexagon.
Walter Roberson
2015 年 10 月 16 日
Is the base station always located at the centre of the hexagon by definition? If so then how is that achieve in the real world, where it might not be physically possible to place base stations at such precise intervals?
回答 (1 件)
SHAIK SHAHNAZ BEGAM
2021 年 6 月 8 日
good morning sir,x_hexagon+1.5+3*nn,y_hexagon+sqrt(3)/2+sqrt(3)*mm can you expalin why you wrote this code
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!