Skip to content

fnmatch

miscellaneous · scripts/miscellaneous/fnmatch.m

FNMATCH  Wildcard match test (Octave name).
  TF = FNMATCH(PATTERN, STRING) returns a logical column that is true
  where each name in STRING matches the wildcard PATTERN(s).

  Wraps __fnmatch__. MATLAB has no public fnmatch; prefer regexp or
  endsWith/startsWith. Unmarked MATLAB-mode scripts that never call
  this name are unaffected.

  See also GLOB, REGEXP.