


% -*- texinfo -*-
% @deftypefn {Function File} {} strmatch (@var{s}, @var{a}, 'exact')
% Return indices of entries of @var{a} that match the string @var{s}.
% The second argument @var{a} may be a string matrix or a cell array of
% strings. If the third argument @code{'exact'} is not given, then
% @var{s} only needs to match @var{a} up to the length of @var{s}. Nul
% characters match blanks. Results are returned as a column vector.
% For example:
%
% @example
% @group
% strmatch ('apple', 'apple juice')
% @result{} 1
%
% strmatch ('apple', ['apple pie'; 'apple juice'; 'an apple'])
% @result{} [1; 2]
%
% strmatch ('apple', @{'apple pie'; 'apple juice'; 'tomato'@})
% @result{} [1; 2]
% @end group
% @end example
% @seealso{strfind, findstr, strcmp, strncmp, strcmpi, strncmpi, find}
% @end deftypefn