stat

Get a quick summary of variable statistics in the command window.

You are now following this Submission

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

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0