For loop averaging increments

3 visualizaciones (últimos 30 días)
Anon97
Anon97 el 16 de Feb. de 2019
Respondida: madhan ravi el 17 de Feb. de 2019
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.

Respuestas (1)

madhan ravi
madhan ravi el 17 de Feb. de 2019
Since it’s homework take mean along the first dimension:
doc mean

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by