function d = locstrict(A,i,j,t) if ~exist('t','var') t = 1; end x = A(:,i,t); y = A(:,j,t); d = .5*sum(abs(x-y)); return