Central moments from histogram data

Calculates central moments of arbitrary order from histogram data.

You are now following this Submission

histStat expects two inputs, a vector of bin-centers and a matrix of counts. Each column is treated as a separate histogram. This method is preferred when the data consists of a large amount of histograms, for instance taken at different times.
For an n X m input matrix, each output vector is 1 X m. For k output-vectors, the moments from 1 to k will be calculated.

An example of the syntax is given in the m-file.

Cite As

Kaare (2026). Central moments from histogram data (https://uk.mathworks.com/matlabcentral/fileexchange/34457-central-moments-from-histogram-data), 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