stat

Get a quick summary of variable statistics in the command window.
506 Downloads
Updated 1 Nov 2014

View License

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 (2024). stat (https://www.mathworks.com/matlabcentral/fileexchange/48323-stat), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

stat/html/

Version Published Release Notes
1.0.0.0