function tf = contains(value, x)
%CONTAINS Does a vector contain a specified value?
%   tf = contains(value, x) returns true if the vector x
%   has at least one element equal to value and returns false
%   otherwise.

tf = false;
for i = 1:numel(x)
    xi = x(i);
    if xi == value
        tf = true;
        break;
    end
end



