Because "mean" does not accept multiple dimensions in older releases:
??? Error using ==> sum
Dimension argument must be a positive integer scalar within indexing range.
Error in ==> mean at 30
y = sum(x,dim)/size(x,dim);
Error in ==> piv_FFTmulti at 655
bg_sig=(1-emptymatrix).*mean(result_conv,1:2); %zeros in middle, average
correlation value in the remaining space
Error in ==> PIVlab_GUI>AnalyzeSingle_Callback at 4689
[x, y, u, v, typevector,correlation_map] = piv_FFTmulti
(image1,image2,interrogationarea, step, subpixfinder, mask,
roirect,passes,int2,int3,int4,imdeform,repeat,mask_auto,do_pad);
Because "mean" does not accept multiple dimensions in older releases: ??? Error using ==> sum Dimension argument must be a positive integer scalar within indexing range.
Error in ==> mean at 30 y = sum(x,dim)/size(x,dim);
Error in ==> piv_FFTmulti at 655 bg_sig=(1-emptymatrix).*mean(result_conv,1:2); %zeros in middle, average correlation value in the remaining space
Error in ==> PIVlab_GUI>AnalyzeSingle_Callback at 4689 [x, y, u, v, typevector,correlation_map] = piv_FFTmulti (image1,image2,interrogationarea, step, subpixfinder, mask, roirect,passes,int2,int3,int4,imdeform,repeat,mask_auto,do_pad);
??? Error while evaluating uicontrol Callback