I have a matrix of 32x32x2500.
I would like to sum it along the third dimension so to have a matrix of 32x32x250 so that along the third dimesion i have summed 10 paged together thus increasing my SNR.
I have tried with something like
sumby10 = zeros(32,32,2500);
for a = 1:11:2500
sumby10(:,:,a) = sum(micron_59frames(:,:,a:a+9),3);
but this does not work as it return a matrix of 32x32x2500.
Could someone help please?