function Used=bestdir(X,Y) % function Used=bestdir(X,Y) % Find the column of X which best points in the direction of Y. %