Demo entry 6770502

uni-cal

   

Submitted by sam on Nov 13, 2018 at 16:45
Language: Matlab. Code size: 145 Bytes.

function E = Uni_cal(x)

E = 0; N = length(x(1,:));
for i = 1:N-1
    for j = i+1:N
        E = E + 1/(norm(x(:,i)-x(:,j)))^2;
    end
end

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).