Code to calculate raw moments?

3 次查看(过去 30 天)
I know that 'moment(x)' gives central moment of vector x
But is there a direct code to compute raw moment?

回答(1 个)

dpb
dpb 2021-6-6
Don't really need a function for that although could wrap in one if desired -- It would just be
M=x.^N;
NB: N in such an expression can be a vector such as [1:4] to return first four.

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by