Useful Matlab Functions Useful Matlab functions that will help coding. OA2.m: Overlapping and averaging function. Corresponds to the opposite function of im2col with 'sliding' enabled. im2col3.m: An im2col variant with 'stride' option added.