morriswmz / doa-tools

A set of MATLAB functions for direction-of-arrival (DOA) estimation in array signal processing.
MIT License
290 stars 88 forks source link

Question about coprime_1d #2

Closed YetiXie1994 closed 3 years ago

YetiXie1994 commented 4 years ago

In array/corime_1d, for the '2m' case, why you remove 'union'?

morriswmz commented 3 years ago

I originally used union to remove duplicated elements. Actually for co-prime pairs, there shouldn't be any overlapping elements for the 2M configuration formula so I just removed the union call and used a simple concatenation instead.

If you are generating arrays whose subarray elements may have overlapping positions, and you do not want multiple sensors at the same position, union is required when combining subarray element positions.