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.
Kaare (2020). Central moments from histogram data (https://www.mathworks.com/matlabcentral/fileexchange/34457-central-moments-from-histogram-data), MATLAB Central File Exchange. Retrieved .