나는 사용자의 위치, 액세스 포인트 및 기지국포인트 간 거리를 계산하는 방법은 무엇입니까?
figure('Color', 'white')
UserLocationX = randi(50, 1, 50);
UserLocationY = randi(50, 1, 50);
plot(UserLocationX, UserLocationY, '^-', 'MarkerSize', 5, 'LineWidth', 2), hold on
AccessPointX = randi(50, 1, 8);
AccessPointY = randi(50, 1, 8);
plot(AccessPointX, AccessPointY, 'go', 'MarkerSize', 5, 'LineWidth', 6), hold on
BaseStationX = 25;
BaseStationY = 25;
plot(BaseStationX, BaseStationY, 'rs', 'MarkerSize', 5, 'LineWidth', 6), hold on, grid on
leg = legend('User Location', 'Access Point', 'Base Station');
set(leg, 'Location', 'NorthEastOutside')
xlabel('x-candidate')
ylabel('y-candidate')
title('Scenario')
사용자와 BS 사이, BS와 AP 사이, 사용자와 AP 사이? –
사용자와 학사 간, 사용자와 AP – user3087700
제목이 바뀌 었습니다. "Matlab 코드를 작성하는 방법"은 매우 광범위했습니다.) – thewaywewalk