Code to calculate raw moments?

2 ビュー (過去 30 日間)
Giridhar sai pavan kumar Konduru
Giridhar sai pavan kumar Konduru 2021 年 6 月 6 日
回答済み: dpb 2021 年 6 月 6 日
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 Center および File ExchangeDatabase Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by