function n = numUnique(x, y, z)
%NUMUNIQUE Number of unique values
%   n = numUnique(x, y, z) returns the number of different
%   values in the scalars x, y, and z.

if x == y && x == z
    n = 1;
elseif x ~= y && x ~= z && y ~= z
    n = 3;
else
    n = 2;
end



