Code to calculate raw moments?
조회 수: 12 (최근 30일)
이전 댓글 표시
I know that 'moment(x)' gives central moment of vector x
But is there a direct code to compute raw moment?
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!