You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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://se.mathworks.com/matlabcentral/fileexchange/48323-stat), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (5.21 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
