How can you calculate the mean of paired figures moving down a column of a variable?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nick Ward
am 5 Mär. 2017
Beantwortet: Image Analyst
am 6 Mär. 2017
I am trying to calculate the mean of paired values working down a column of a variable.
The attached image shows the 19x1 matrix. I need to calculate the mean of row 1 and 2, 2 and 3, 3 and 4, and so on...
I am a novice to Matlab and this is for a university report. Any help would be greatly appreciated.
1 Kommentar
Akzeptierte Antwort
Image Analyst
am 6 Mär. 2017
Try movmean
means = movmean(m, 2)
or else try
means = conv(m, [.5,.5], 'same');
0 Kommentare
Weitere Antworten (0)
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!