One of the given sequences is repeated via circular shift of one sample at a time to form a N X N matrix. The other sequence is represented as column matrix. The multiplication of two matrices give the result of circular convolution. This MATLAB function calculates the phase shift values of an array operating at a specified frequency to scan the beam at the given angle.