MATLAB: How to excite each antenna with a different level of power by using phased array toolbox or antenna toolbox

Antenna ToolboxPhased Array System Toolboxphased array toolbox

Hello everyone
I want to excite each antenna with a different level of power in a URA, and then see the array pattern. How can I do that by using phased array toolbox or antenna toolbox?
Thanks in advance. Xining yu

Best Answer

You can do this by passing in a weight vector to array. For example, say you have an 8-element array and you want to excite it each element at a different level so as if it has a Hamming window on it, you can do
array = phased.ULA(8);
fc = 3e8;
w = hamming(8);
pattern(array,fc,'Weights',w)
HTH
Related Question