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.

Réponses (1)

Image Analyst
Image Analyst le 17 Déc 2013

0 votes

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 commentaire

misi
misi le 19 Déc 2013
Modifié(e) : Image Analyst le 19 Déc 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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Question posée :

le 17 Déc 2013

Modifié(e) :

le 19 Déc 2013

Community Treasure Hunt

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

Start Hunting!

Translated by