Hi All
I have a 3D matrix of size 412 x 314 x 200. I am squeezing out 2D matrices as follows:
Suppose A = 412 x 314 x 200
Matrix1 = squeeze(A(:,:,1));
Matrix2 = squeeze(A(:,:,2));
and so on. I can do this using a loop.
I want to calculate the moving average of these various Matrices (Matrix 1, Matrix 2 and so on). I am not able to understand how the 'movmean' function works. 'Smoothdata' does not work on my laptop. I am also unsure how to select the moving window, and which window would be appropriate for my data. Could someone please assist with this query?
Maybe there is a better way of calculating the moving average without having to squeeze matrices out? The ultimate result that I want should be a vector of size 200 x 1, where 200 is the third dimension of A and for every third dimension I want to calculate a final figure for 412 x 314 via moving average.
Thank you in advance for your help!
An
Best Answer