function d=mydist(A,B,x,y);

% d = dist(A,B,x,y);
% local distance computation for DTW
% A,B - sequences of feature vectors
% x,y - column indice for A and B respectively

d=sum( (A(:,x)-B(:,y)).^2 );

return