%% Determine Whether Infinity and NaN Are Numeric Type
% Determine if an array containing infinity or not-a-number values is a numeric type.
% Create several calculations that return Inf and assign the results to an array. Check if the array is a numeric type.

A = [1/0 log(0) 1e1000]
TF = isnumeric(A)

% MATLAB represents infinity by the special value Inf as a double type.
% Create several calculations that return NaN and assign the results to an array. Check if the array is a numeric type.

A = [0/0 -Inf/Inf]
TF = isnumeric(A)

% MATLAB represents not-a-number by the special value NaN, as a double type.
%
% Copyright 2018 The MathWorks, Inc.