function y = distinct0(T) % DISTINCT0 y = distinct0(T) Distinct members of T % Version of 5/19/97 % Sorts a matrix T and determines % the distinct members. Output is a % row vector of the distinct members TS = sort(T(:)'); n = length(TS); d = [1 abs(TS(2:n) - TS(1:n-1)) > 0]; y = TS(find(d));