www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/InfiniteElementsOfVectorExample.m

    %% Infinite Elements of Vector
% Determine the infinite elements of the row vector, |A|.
A = 1./[-2 -1 0 1 2]

%%
TF = isinf(A)