function pf = hasInfNaN(x)
%HASINFNAN  Use ALLFINITE instead.

%   Copyright 1986-2023 The MathWorks, Inc.
%#codegen
pf = ~allfinite(x);