clear;clc;A = randint(20,2,[0,100]);for ii = 1:20 for jj = 1:20 B(ii,jj) = sqrt((A(ii,1)-A(jj,1))^2+(A(ii,2)-A(jj,2))^2); endend