function INDX = getIFP(h)
%GETINDEX  Computes IFP index from frequency response.

%   Copyright 1986-2017 The MathWorks, Inc.
[~,~,nf] = size(h);
INDX = NaN(1,nf);
for ct=1:nf
   hf = h(:,:,ct);
   if allfinite(hf)
      INDX(ct) = min(eig(hf+hf'))/2;
   end
end