Borrar filtros
Borrar filtros

How can i average a 1-D array every n elements?

3 visualizaciones (últimos 30 días)
Gustavo Zapata
Gustavo Zapata el 7 de Jul. de 2019
Respondida: infinity el 7 de Jul. de 2019
I have a 1-D array of N elements, and i want to average them every k elements, but i want the output to still have the N size. Also N may or may not be an integer multiple of k. How can i do that?

Respuestas (1)

infinity
infinity el 7 de Jul. de 2019
Hello,
I think this function is exactly what you want

Categorías

Más información sobre Data Types 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