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.

답변 (1개)

Image Analyst
Image Analyst 2013년 12월 17일

0 개 추천

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

misi
misi 2013년 12월 19일
편집: Image Analyst 2013년 12월 19일
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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2013년 12월 17일

편집:

2013년 12월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by