Code covered by the BSD License
[totalrows,columns,planes]=size(a); if dimension==2; completediterations=planes-1; elseif dimension==1; completediterations=totalrows-1; end
Contact us at files@mathworks.com