Take a fixed window average of large column vector?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Im trying to shrink the size of a column vector by averaging every 10 terms inside. At the moment it has about 7000 terms inside and I would like to shrink it by a factor of 10. I have been trying to use mean reshape command but to no avail. Can anyone help?
thanks
0 Kommentare
Antworten (1)
Ameer Hamza
am 12 Nov. 2020
This shows an example
x = rand(7000,1);
y = mean(reshape(x, 10, []))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!