A basic polar plot tool in dB linear scale

polar_dB makes a plot of gain=10*log10(g) versus polar angles phi
4.5K Downloads
Updated 25 Jan 2010

View License

Hi everyone,
this is a basic polar plot tool in dB , you can change the range which can be very helpful for analyze the nature of your pattern.

Here is a test code:

%------------------------
% Linear Arrays of Isotropic Elements
const=1; lambda=1; k=2*pi/lambda;
theta=linspace(0,2*pi,200);
d=1/1*lambda; % distance between the elements
I=ones(1,5); %Identical elements
AF=zeros(1,length(theta));

%Array factor (rotational symmetry)
for n=1:length(I)
AF=AF+abs(I(n))*exp(1i*(n-1)*k*d*cos(theta));
end

AF=AF/max(AF); %normal
f1=figure();
set(f1,'Name','Simulation Plot for Linear Arrays of Isotropic Elements ')
rangedb = 15; increments =3; rays = 12;
h=polar_dB(theta,AF,rangedb,increments,rays);
%------------------------

Cite As

Hakan Cakmak (2024). A basic polar plot tool in dB linear scale (https://www.mathworks.com/matlabcentral/fileexchange/26476-a-basic-polar-plot-tool-in-db-linear-scale), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Polar Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0