Code to calculate raw moments?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I know that 'moment(x)' gives central moment of vector x
But is there a direct code to compute raw moment?
0 Commenti
Risposte (1)
dpb
il 6 Giu 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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Database Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!