I have a dataset CNS with the size nxm n instances and m features(columns), I wanted to write codes to collect all the features of the data in a set or maybe in a vector (F):
and then I want to say that the set E is equal to the set F, It means all the elements in F will be put in the set E to use E in the next step, and also I want to say that S is an empty set initially, then I used two for loops to compute the distance between each columns of the data and calculated the average of thses values,
and I used min function to obtain the index of the minimum then I removed It from F and put the result in E.
I attach the CNS, fDiceaDist function.
by continueing the program, when I run the codes, It never stops.
I'll be vary grateful to have your opinions If these codes are true in matlab. Thank you very much