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.

Answers (1)

Image Analyst
Image Analyst on 17 Dec 2013
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 Comment

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

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 17 Dec 2013

Edited:

on 19 Dec 2013

Community Treasure Hunt

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

Start Hunting!