Hi Chinku!
It looks like you want to estimate Direction of Arrival(DOA) and want to arrange the coprime array in 2 dimensions.
For the purpose of arranging a two-dimensional (2D) coprime array, you need to select two coprime integers. The coprime property means that the integers have no common divisors other than 1.
The array elements can be then placed at positions that are multiples of these two numbers, let say m and n. In case of a 2D array, you can create a grid where one dimension has sensor spacings of (md) and the other dimension has sensor spacings of (nd), where d is constant which can be chosen as half the wavelength of the signal of interest.
Here is a sample Matlab code for the above approach:
% Define coprime integers m and n
m = 2; % example value for m
n = 3; % example value for n, coprime with m
% Define the unit distance (usually half the wavelength)
d = 0.5; % example value
% Define the maximum sensor placements for each dimension
max_sensor_x = m * n; % maximum placement along x-axis
max_sensor_y = m * n; % maximum placement along y-axis
% Generate the sensor positions for the coprime array
sensor_positions_x = 0:d:m*max_sensor_x;
sensor_positions_y = 0:d:n*max_sensor_y;
% Create a grid of sensor positions
[X, Y] = meshgrid(sensor_positions_x, sensor_positions_y);
You can further perform DOA estimation with the coprime array with following steps:
- Collect the data from the array sensors in response to the incoming signals.
- Compute the covariance matrix of the received signals.
- Use the algorithms like ESPIRIT to estimate the DOAs.
You can refer to the following documentation for more information on DOA estimation using ESPRIT https://www.mathworks.com/help/phased/ref/phased.espritestimator-system-object.html.