By using MATLAB software: Exercise 2: Generate radiation pattern for a dipole as its length varies. % M-File:...

50.1K

Verified Solution

Question

Electrical Engineering

By using MATLAB software:

Exercise 2: Generate radiation pattern for adipole as its length varies.

% M-File: ML0803

%

% Dipole antenna movie shows radiation

% pattern as dipole length grows from 0.1

% lambda to 2.1 lambda.

%

% Variables

% L dipole length (in wavelengths)

% bL2 phase constant * length/2

% N number of theta points

% th,thr angle theta in degrees,radians

% num,den temporary variables

% F un-normalized power function

clc %clears the command window

clear %clears variables

% Initialize variables

N=360;

th=1:1:N;

thr=th*pi./180;

% Generate Reference Frame

L=0.1;

polar(0,6); %sets scale for polar plot

T=num2str(L);

S=strvcat('Length',T,'wavelengths');

text(6,6,S)

axis manual

title('Linear Antenna Radiation Pattern')

hold on

pause

% Make the Movie

L=0.1:0.02:2.1;

for n=1:100

polar(0,6)

axis manual

title('Linear Antenna Radiation Pattern')

T=num2str(L(n));

S=strvcat('Length',T,'wavelengths');

text(6,6,S)

hold on

num=cos(pi*L(n)*cos(thr))-cos(pi*L(n));

den=sin(thr);

F=(num./den).^2;

polar(thr,F)

hold off

M(:,1)=getframe;

end

Question 2: Run this program for differentchoices of dipole length.

Answer & Explanation Solved by verified expert
3.8 Ratings (371 Votes)
The code for this problem is already given aboveMATLAB Code Dipole antenna movie shows radiation pattern as dipole length grows from 01 lambda to 21 lambda Variables L dipole length in    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students