normalized gain computation for 1D isotropic array
[g, phi] = gain1d(d, a, N)
array spacing in units of lambda
row vector of array weights
number of azimuthal angles in [0,pi] (N+1 angles)
row vector of gain values evaluated at phi
row vector of (N+1) equally-spaced angles over [0, pi] (in radians)
gain1d(d, a, N) can be used for normalized gain computation for 1D equally-spaced isotropic array. computes g(phi) = |A(psi)|^2, where A(psi) = \sum_n a(n)z^n, with z = e^(j*psi) and psi = 2*pi*d*cos(phi), normalizes g to unity maximum, [g,phi] can be passed into gain plotting functions DBZ,ABZ e.g., dbz(phi,g), abz(phi,g)
to compute the gain of a scanned array use SCAN or STEER first, e.g. [g, phi] = gain1d(d, scan(a,psi0), N); [g, phi] = gain1d(d, steer(d,a,phi0), N);
This function uses the function dtft.