For loop to take the average of previous 10 elements and next 10 elements in an array in each step

2 vues (au cours des 30 derniers jours)
How can I make a for loop to go through an array (dimensions = 1 row x 383 columns) and take the average of the previous 10 elements and next 10 elements in each step, then return the new array with the same dimensions as the original (1 row x 383 columns)?
Thank you!

Réponse acceptée

Torsten
Torsten le 17 Mai 2022

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by