Question regarding Antenna toolbox example provided by mathworks ( beam pattern)
6 views (last 30 days)
This question is related to the Antenna toolbox in MATLAB. I have found an online example from Mathworks, below is the link which shows the example. In particular I am interested in only the first example (null steering)
I don't currently own the antenna toolbox, but I am trying to generate the same figure for the first example (null steering). My questions regarding the exisiting code on the link provided above is
column or row vectors?
2- Is the product
wn'*wn equal to 1
if so why is it then even used in the current code (it doesn't change the computation) ?
I have tried to write down my own code to plot the pattern that is shown in this link (first figure) as function of theta
h_desired=((1/sqrt(Ntx))*exp(i*(2*pi/lambda)*(lambda/2)*[0:1:(Ntx-1)].*sin(0*pi/180)))'; %desired direction
h_interference=((1/sqrt(Ntx))*exp(i*(2*pi/lambda)*(lambda/2)*[0:1:(Ntx-1)].*sin(40*pi/180)))'; %interference direction
rn = h_interference'*h_desired/(h_interference'*h_interference);
w_r = h_desired-h_interference*rn;
ylabel('Normalized Power dB')
As you can see I don't obtain correct results, in particular the null at 40 degrees is almost -300 dB what is the problem, the example from mathworks gives -100db (please check link)?
Looking forward for your answers
Honglei Chen on 30 Oct 2015
The example actually belongs to Phased Array System Toolbox, not Antenna Toolbox.
1. These are columns
2. wn is the steering vector corresponding to the null direction. It is not normalized but what matters is its phase structure rather than the magnitude. It is used to project the return to the null direction and then remove it from the beam pattern.
Finally, the null is deep, the example figure simply set the lower limit of y axis to -100 dB to get a more balanced picture. A null means the response is close to 0, so theoretically it should -inf.