How can I obtain correct dB plot ??

I am trying to design antenna array using chebyshev polynomials. The Main Lobe to Size lobe ratio is given i.e 26dB.
I tried writing the Matlab code for it. I obtained tchebyshev polynomial coefficients also.
But when I plot the pattern. I am getting the wrong pattern. i.e in the dB plot... Im getting side lobe at around 15dB instead of 26dB.
Please do suggest the solutions for this.
The part of the code is uploaded... Notify me where i have to make the changes.
Code ::::
Mn=(N/2);
coef=chebwin(N,RodB);
disp(coef);
AF=0;
for i=1:Mn
AF=AF+coef(i).*cos((2*i-1).*u); %Even
end
AF_mag=abs(AF);
AF_norm=((AF_mag)./(max(AF_mag))).^2;
figure(1);
polar(theta,AF_norm);
AF_dB=10.*log(AF_norm);
figure(2);
plot(theta.*180/pi,AF_dB);
axis([0,180,-50,0]);

Answers (1)

Hi Tejas R,
A Dolph–Chebyshev array has a symmetric amplitude taper. For an even array, each symmetric element pair has the same weight, so its contribution reduces to a cosine term. In the expression used here, the first cosine corresponds to the innermost element pair and must therefore use the center weight, with subsequent terms progressing outward toward the edge weights.
`chebwin` returns weights from one edge of the array to the other. Thus, its first half runs from edge to center, which is the reverse of the order required by this expression. Using `coef(Mn+i)` instead of `coef(i)` selects the second half, giving the required center-to-edge ordering and restoring the expected sidelobe level.
Also, decibels require a base-10 logarithm, so `log` should be replaced with `log10`.
N = 10; % number of elements (even)
RodB = 26; % main-lobe to side-lobe ratio in dB
d = 0.5; % element spacing in wavelengths
theta = linspace(0,pi,1801);
u = pi*d*cos(theta); % u = (pi*d/lambda)*cos(theta)
Mn=(N/2);
coef=chebwin(N,RodB);
disp(coef);
AF=0;
for i=1:Mn
AF=AF+coef(Mn+i).*cos((2*i-1).*u); % changed: coef(i) -> coef(Mn+i)
end
AF_mag=abs(AF);
AF_norm=((AF_mag)./(max(AF_mag))).^2;
figure(1);
polar(theta,AF_norm);
AF_dB=10.*log10(AF_norm); % changed: log -> log10
figure(2);
plot(theta.*180/pi,AF_dB);
axis([0,180,-50,0]);

Categories

Find more on Design, Analysis, Benchmarking, and Verification in Help Center and File Exchange

Asked:

on 26 May 2019

Answered:

about 15 hours ago

Community Treasure Hunt

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

Start Hunting!