Joined: 09 Oct 2015
|Posted: Fri Oct 09, 2015 10:00 am Post subject: Plotting antenna pattern in MATLAB
|I have a beamformed output in MATLAB, say
y = weights * signal,
where the signal is gaussian,i.e signal = randn( 1 , 1e5 ).
Now I want to visualise the output in angular domain, i.e I want to plot the gain of the resulting signal y as a function of elevation angles. I am considering the mainlobe of 'signal' to be pointing in (0 azimuth,0elevation). The weights are combination of amplitude weights and phase weights(exp(phase terms)). I am computing the antenna pattern in the following way:
pattern = abs(arrayFactor.* y).^2;
Is it correct to plot the antenna pattern of such a signal y by multiplying it by the array factor and then plotting its squared magnitude?(in case of isotopic element pattern.)
I would highly appreciate any input.