% Parameters
c = 1500;       % speed of sound
f = 200;        % frequency
lambda = c/f;   % wavelength
k = 2*pi/lambda;% wavenumber

% ULA-horizontal
Nobs = 20;         % number of sensors
d = 1/2*lambda; % intersensor spacing
q = [0:1:(Nobs-1)];% sensor numbering
xq = (q-(Nobs-1)/2)*d; % sensor locations
% xq = q*d;     xq = 10*randn(1,N);      % sensor locations
% 

% Plot mic positions
% figure; plot(ones(N,1),xq,'ob'), view([90,0])

% Bearing grid
theta = [-90:0.5:90];
u = sind(theta);
Ntheta=length(theta);
%sensing matrix
A = exp(-1i*2*pi/lambda*xq'*u)/sqrt(Nobs);

