function INDX = getINDEX(h,W1,W2)
%GETINDEX  Computes relative sector index from frequency response.

%   Copyright 1986-2015 The MathWorks, Inc.
[~,nu,nf] = size(h);

INDX = zeros(nu,nf);
for ct=1:nf
    hf = h(:,:,ct);
    INDX(:,ct) = ltipack.util.gsvd(W1'*hf,W2'*hf);
end


