This MATLAB function returns the sum along different dimensions of the fi array A .
www.mathworks.com