averaging successive points in matrix
Ältere Kommentare anzeigen
I am new to matlab and I want to average a matrix M(26x149) in such away that 9 successive data points in the second dimension are averaged to have M(26,17) data. The division of 149/9 may not be exact but I want 16 data plus the remaining 5 points are also averaged to make the total data M(26,17).
here is the script I tried
a= 1:9:length(M)
MM=mean(M(:,a))
but this doesn't solve my problem
Any help is highly appreciated.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!