%% Determine Infinite Complex Elements
% Create an array of complex numbers. Determine whether the complex numbers contain infinite values.

A = [2 + 1i, 3 + 1i/0, 0/0 - 2i]
TF = isinf(A)

% The second element of A has an infinite imaginary part. For this element, isinf returns 1.
%
% Copyright 2019 The MathWorks, Inc.