stat
I find this function useful for getting a quick idea about the range of values in a large multidimensional variable.
stat(variable) prints the following properties of a variable in the command window:
size: size of variable.
numel: number of elements in variable.
NaNs: number of not-a-number values in variable.
maximum: maximum value in variable across all dimensions.
minimum: minimum value in variable across all dimensions.
mean: mean value of variable across all dimensions.
median: median value of variable across all dimensions.
mode: most frequent value in variable across all dimensions.
std dev: standard deviation of variable across all dimensions.
variance: variance of variable across all dimensions.
Cite As
Chad Greene (2026). stat (https://www.mathworks.com/matlabcentral/fileexchange/48323-stat), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
