wglob
WGLOB Expand filename wildcards (Octave name). FILES = WGLOB(PATTERN) returns a cell array of matching file names. PATTERN may be a character array or a cell array of strings. Wraps __wglob__. Related to GLOB; prefer DIR for MATLAB-portable code. Unmarked MATLAB-mode scripts that never call this name are unaffected. See also GLOB, DIR, FNMATCH.