I think this is a good working and had help me more.
I have this question: i like to change euclidean distance{d=(repmat(Test',1,N)-repmat(Ref,M,1)).^2;} with mahalanobis distance is it possipole? if yes how can i do that?
because i like to test the efficiency of my system when i use euclidean distance and when i used mahalnobis distance.