function b = isfinite(x)
%MATLAB Code Generation Library Function

%   Copyright 2002-2019 The MathWorks, Inc.
%#codegen

coder.internal.allowEnumInputs;
coder.internal.allowHalfInputs;
eml_invariant(nargin > 0, ...
              'MATLAB:minrhs');
eml_invariant(coder.internal.isBuiltInNumeric(x) || ischar(x) || islogical(x) || isa(x, 'half'), ...
              'Coder:toolbox:unsupportedClass','isfinite',class(x));
b = ~isinf(x) & ~isnan(x);
