Here is a simple code to create an array of cells. Study each function and create your own cell placement.
Code:
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=10;
M=10;
figure(1)
hold on
for nn=0:N
for mm=0:M
plot(x_hexagon+3*nn,y_hexagon+sqrt(3)*mm)
end
end
for nn=0:N-1
for mm=0:M-1
plot(x_hexagon+1.5+3*nn,y_hexagon+sqrt(3)/2+sqrt(3)*mm)
end
end
hold off
axis equal
hey Joannes, i am doing an undergrad thesis on relay enhanced cellular network and i have to simulate a network using my chosen structure and parameters to calculate SINR, pathloss etc. could you kindly refer me any resource that can help me out with this?
hi JoannesPaulus
what you mean by N & M??
if i want to specify radius for the cell how i can ??
and if i want this grid over a certain area in x & y direction how can i specify ???
hey Joannes, i am doing an undergrad thesis on relay enhanced cellular network and i have to simulate a network using my chosen structure and parameters to calculate SINR, pathloss etc. could you kindly refer me any resource that can help me out with this?