numelNumber of elements in an array.
numel(A)A should be an array.A. prod(size(A)).numel(r) is the same as the product of all elements in the size vector of the array r.r = ones(1,2,3,4,1,1);
numel(r)
prod(size(r))
ans =
24.000
ans =
24.000