%the maximum needed delay for 24 sensors is
%%clc;
clear;
N = 24;   % N Number of array elements
d = 0.01143; % separation in m
t = pi/6;% angle of 30 
t1= pi/2;% angle of 90 
t2= pi/4;
c = 343.0; % sound speed m/s
tmax=(N-1)*d*cos(t)/c; % unit is s
tmax1=(N-1)*d*cos(t1)/c;
tmax2=(N-1)*d*cos(t2)/c;