Hi Aditya, thank you for answering, this helps me improve some understanding :-)
In your code, in line 43 and 44 which assert C and d respectively, I consider that the two-set of constraints do guide the script in such a way that:
1) the phase array response will feature a directivity of 1 in the angle of arrival [0; 45], and
2) the phase array response will feature a directivity of ~0 in the angle of arrival [120; 45].
An the resulting 3D pattern looks to satisfy this.
However, what I would like to get is actually:
1) the phase array response will feature a directivity of ~0 in the angle of arrival [0; 45], and
2) the phase array response will feature a directivity of ~0 in the angle of arrival [120; 45], and
3) the phase array response will feature a directivity of 1 in all other directions.
I didn't succeed to modify the script to achieve this. Do you have any clue ?
Thank you very much,
Best Regards,
LC
P.S: for instance, I tried the following, by placing only lines 43 and 44 by the following ones:
C = [steervec(arrayPos/wavelength, [0; 45]), steervec(arrayPos/wavelength, [120; 45]), steervec(arrayPos/wavelength, [0; 0])];
d = [0; 0; 1];
myweights = lcmvweights(C, d, xcov);
And the I get this kind of 3D beamformer response, where sadly [0;45] and [120;45] aOas do not exhibit a ~0 directivity.
