function [num_dif,num_same,different] = CS5300_DT_dif_same(x)
%

[num_x,num_fea] = size(x);
different = zeros(num_x,num_x);

for x1 = 1:num_x
    for x2 = 1:num_x
        different(x1,x2) = norm(x(x1,:)-x(x2,:))>0;
    end
end
for x1 = 1:num_x
    num_same(x1) = length(find(different(x1,:)==0));
    num_dif(x1) = num_x - num_same(x1);
end
tch = 0;
