How to calculate cumulative average of every n values in a matrix?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Parthu P
am 22 Nov. 2019
Beantwortet: Parthu P
am 22 Nov. 2019
Hi, I have 300x20 matrix (A). How to calculate average of every 3 consecutive rows of each column to have output matrix B (100x20)?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
JESUS DAVID ARIZA ROYETH
am 22 Nov. 2019
solution:
mean100x20=reshape(mean(reshape(A,3,[])),100,[])
0 Kommentare
Siehe auch
Kategorien
Mehr zu NaNs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!