pattern data out of scanned phased antenna array, not just the plot

I’ve worked through a lot of examples, it is easy to create a plot for a phased-antenna array, one which is scanned to several angles using the plotResponse function. I’m sure it is easy to do what I want, just not for me…. which is get the numbers plotted on the plot. They are directivity referenced, etc. Values from a 3D plot would be helpful too.

this command line is used to retrieve the actual numbers which represent the pattern:

"el_pat = abs(step(sArrayResponse,fmax,el_ang));"

The step function seems to be the answer to all problems of the world, but if I want to put my own weights to point the main beam in a particular direction, meaning in for ea element/s for the phases and possibly amplitude, I have not figured out how I can get just the pattern numbers (angle-magnitude) out afterwards. I would also like the values output for a 3D plot as well.

This code produces a pattern I want the actual numbers from:

frequency = 3e9
propagationSpeed = physconst('lightspeed')
h = phased.URA;
h.ElementSpacing = [0.0408163265306122 0.0408163265306122];
h.Size = [8 16];
h.Lattice = 'Rectangular';
% The element is just a cosine element
h.Element = ...
phased.CosineAntennaElement('CosinePower',[2 2]);
%Assign steering angles, frequencies and propagation speed
steeringAngle = [0;30]; %Steering angle
%Calculate Steering Weights
w = zeros(getNumElements(h), length(frequency));
elementVector = phased.SteeringVector('SensorArray',h, ...
'PropagationSpeed', 300000000,...
'IncludeElementResponse',true);%SV steering vector
%Find the weights and the strings for the legend
for idx = 1:length(frequency)
w(:, idx) = step(elementVector, frequency(idx), steeringAngle(:, idx));
end
figure;
plotResponse(h, frequency, propagationSpeed, 'Unit','dbi', ...
'Format', 'Line', 'RespCut', 'El', 'weights', w);

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

What version of Phased Array System Toolbox do you have? If you are using R2014b, then you can use directivity method to retrieve the value, for example, to get the data you plot, you can do the following:

el = -90:90;
az = zeros(1,numel(el));
D = directivity(h,frequency,[az;el],'Weights',w);

You can verify it by plotting it as

plot(el,D)

and compare it to what you get from plotResponse

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Team.Finance AMA 09/12/2020

Preparing For My First Launch School Assessment

PRINCESS 👸 IN HER 🏰:

FORMULATION IN C#

The Beginner’s Guide to Torrenting

How to Play Sound Effects in Unity

Open Policy Agent, The June Newsletter!

Logo

What Is Python Used For

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

Students adaptability level in online education

Analysis of Airplane Crashes Around the world

Books you will find in every data scientist’s booklist

First of all…