Code to calculate raw moments?

2 vues (au cours des 30 derniers jours)
Giridhar sai pavan kumar Konduru
Réponse apportée : dpb le 6 Juin 2021
I know that 'moment(x)' gives central moment of vector x
But is there a direct code to compute raw moment?

Réponses (1)

dpb
dpb le 6 Juin 2021
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.

Community Treasure Hunt

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

Start Hunting!

Translated by