function numx = numberofelements(x)
% MATLAB Code Generation Library function.
%
% Limitations:
% No known limitations.

% $INCLUDE(DOC) toolbox/eml/lib/fixedpoint/@embedded/@fi/isfinite.m $
%   Copyright 2002-2010 The MathWorks, Inc.
%#codegen

if eml_ambiguous_types
    numx = 0;
    return;
end

numx = prod(size(x));

