what — Summarize MATLAB-related files in a folder.
what summarizes recognized source and data files in the current folder or a named folder.
Syntax
info = what(folder)Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
input | Any | Yes | — | Input argument. |
Returns
| Name | Type | Description |
|---|---|---|
value | Any | Result value. |
How what works
- With no input, inspects the current folder. An optional folder must be a host string scalar or character row vector.
- Returns a scalar structure whose implemented fields group recognized files in the selected folder.
- Native integer, floating, logical, and resident numeric folder values are invalid and reject before filesystem or provider access.
- Additional file categories and package/class details not represented by the current structure remain unsupported.
Using what with coding agents
Open a RunMat example with live inputs, then ask the agent to explain how what changes the result.
Run a small what example, explain the result, then change one input and compare the output.
FAQ
Does what gather a numeric folder argument?⌄
No. A folder is text, so numeric and resident values are rejected before any gather or filesystem access.
Related Io functions
Repl Fs
addpath · cd · copyfile · delete · dir · exist · fileattrib · fileparts · fullfile · genpath · getenv · getpref · isenv · isfile · isfolder · ispref · ls · matlabroot · memmapfile · mkdir · movefile · open · opentoline · path · pathsep · pcode · pwd · readstruct · rehash · restoredefaultpath · rmdir · rmpath · run · savepath · setenv · setpref · system · tempdir · tempname · uigetdir · uigetfile · uiputfile · unsetenv · userpath · winqueryreg · xmlread · xmlwrite
Tabular
arrayDatastore · csvread · csvwrite · detectImportOptions · dlmread · dlmwrite · fileDatastore · parquetDatastore · parquetinfo · parquetread · readcell · readmatrix · readtable · readtimetable · spreadsheetImportOptions · writecell · writematrix · writetable · writetimetable · xlsread · xlswrite
Filetext
fclose · feof · fgetl · fgets · fileread · filewrite · fopen · fprintf · fread · frewind · fwrite · readlines · writelines
Import
Json
About RunMat
RunMat is an open-source runtime that executes MATLAB-syntax code blazing on any GPU. It is licensed under the Apache 2.0 license.
- RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
- Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.