I just wonder what that function does? I tried so many examples and could not get it. Thanks for your help.
function result = funct(array) result=0; for i=2:length(array) for j=1:i-1 if array(j)==array(i) result=result+1; end end end result=length(array)-result;end
Best Answer