summarize

This function mimics Stata's summarize command.

You are now following this Submission

This function finds summary statistics of X, which can be a column vector or matrix.
Additionally, allows for computation of weighted statistics (if user supplies weighting vector or matrix) and detailed summary statistics. Weights are "fweights" in the Stata sense and detailed summary statistics are displayed in a similar fashion as Stata's "detail" option.

Cite As

Tyler Ransom (2026). summarize (https://in.mathworks.com/matlabcentral/fileexchange/41150-summarize), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Descriptive Statistics

Categories

Find more on MATLAB Report Generator in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Fixes a bug when logical inputs are provided.

1.2.0.0

Fixed ordering of columns in output matrix so that max after after min.

Fixed error that occurs when largest/smallest 5 values are computed for a vector that has less than 5 values (now, the min and max are displayed for all of these values)

1.1.0.0

Fixes bug when a variable has all missing values. Also fixes a bug that had been preventing the use of logical variables.

1.0.0.0