FUNCTION REFERENCE
what
List the MATLAB files in a folder.
List the MATLAB files in a folder.
Syntax
s = what; s = what(folder); what folderReturns a struct with fields path, m, mlapp, mat, mex, mdl, slx, p, classes and packages; each list is a sorted column cell. A missing folder gives a 0x1 struct.
Example
w = what(pwd); class(w.m) % cellDifferences from MATLAB: Folders are looked up from the current folder only, not on a search path.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.