For loop averaging increments

I currently have a variable (call it x) with the dimensions of 100x500. How would I create a for-loop that will take the average of the first 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100 and the resulting vectors (ten of them) should be of length 1x500? Please explain what you did.
This is apparently also called ensamble averaging.

답변 (1개)

madhan ravi
madhan ravi 2019년 2월 17일

0 개 추천

Since it’s homework take mean along the first dimension:
doc mean

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2019년 2월 16일

답변:

2019년 2월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by