Matlab code for "user disribution"

I need to have 6 cell and in each one one base station and random access point between 1 to 10 with random users between 10 to 100. would please help me for its matlab code.

Risposte (1)

Image Analyst
Image Analyst il 17 Dic 2013

0 voti

I don't understand what you want to do (perhaps because you haven't read this) but I think that the rand(), randi(), or randperm() functions might be useful to you.

1 Commento

misi
misi il 19 Dic 2013
Modificato: Image Analyst il 19 Dic 2013
you know there is 6 zone serviced by an eNodB and in each zone we have random access point which varies between 1 and 10 and in each zone we have random 10 to 100 user. I just need the code for this scenario. I have the code for one zone below:
UserLocationX = randi(50, 1, 50);
UserLocationY = randi(50, 1, 50);
plot(UserLocationX, UserLocationY, '^', 'MarkerSize', 5, 'LineWidth', 3), hold on
AccessPointX = randi(50, 1, 8);
AccessPointY = randi(50, 1, 8);
plot(AccessPointX, AccessPointY, 'go', 'MarkerSize', 5, 'LineWidth', 4), hold on
eNodeBX = 25;
eNodeBY = 25;
plot(eNodeBX, eNodeBY, 'rs', 'MarkerSize', 5, 'LineWidth', 4), hold on, grid on, grid minor

Accedi per commentare.

Categorie

Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange

Richiesto:

il 17 Dic 2013

Modificato:

il 19 Dic 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by