How do I do this without the loops in a few lines?
S = zeros(100,100);sig = 0.05;for i = 1:100 for j = 1:100 S(i,j) = exp(-norm(D(i,:)-D(j,:),'fro')/sig); end end
for loophomeworkmemory
S = zeros(100,100);sig = 0.05;for i = 1:100 for j = 1:100 S(i,j) = exp(-norm(D(i,:)-D(j,:),'fro')/sig); end end
Best Answer