in this code
figure('Color', 'white')dis = zeros(50,8);UserLocationX = randi(50, 1, 50);UserLocationY = randi(50, 1, 50);AccessPointX = randi(50, 1, 8);AccessPointY = randi(50, 1, 8);for k=1:50 for l=1:8dis (k,l)= sqrt((UserLocationX(k)-AccessPointX(l)).^2 + (UserLocationY(k)-AccessPointY(l)).^2); endendplot(dis,'d'), grid onxlabel('x1')ylabel('y1')title('distances between UL and AP')
Best Answer