function tf = matches(s, varargin)
%MATCHES True if pattern is equal to the text
%   
%   TF = MATCHES(S,PATTERN)
%   TF = MATCHES(S,PATTERN,'IgnoreCase',IGNORE)
%   
%   Limitations:
%   Pattern objects are not supported.
%   
%   See also MATCHES.
%   


%   Copyright 2019-2020 The MathWorks, Inc.

narginchk(2, 4);
% PATTERN is currently not supported
matlab.bigdata.internal.util.errorIfPatternInput('distributed', s, varargin{:})
tf = codistributed.pElementwiseUnaryOp(@matches, s, varargin{:});
