Question

In: Electrical Engineering

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

By using MATLAB software:

Exercise 2: Generate radiation pattern for a dipole 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 different choices of dipole length.

Solutions

Expert Solution

The code for this problem is already given above.

MATLAB Code ==>

% 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:1

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

RESULTS ==>

Its result is an animation. I am sending you the snapshots below ==>

NOTE - If you have any issue with the solution, then please ask me in the comments.


Related Solutions

BY Using MATLAB software: Exercise 3: Calculation of the parameters of a dipole. % M-File: ML0804...
BY Using MATLAB software: Exercise 3: Calculation of the parameters of a dipole. % M-File: ML0804 % % Perform numerical integration to find % beam solid angle, directivity, and the % maximum power function for a given length % dipole. % % Variables % L dipole length (in wavelengths) % bL2 phase constant * length/2 % N number of theta points % th,thr angle theta in degrees,radians % dth differential theta % num,den temporary variables % F un-normalized power function...
Radiation resistance of a small dipole current element of length l at a frequency of 6...
Radiation resistance of a small dipole current element of length l at a frequency of 6 GHz is 9 ohms. If the length is changed by 5%, then the percentage change in the radiation resistance?
Exercise 2.1: Basic digital signals (a) Write a MATLAB program to generate and display (using the...
Exercise 2.1: Basic digital signals (a) Write a MATLAB program to generate and display (using the stem function) the signals defined in Table 1. The MATLAB code of the first signal (dirac) is given in the report template as an example. (b) Write a MATLAB function [x, t] = sin_NU(f0, fs, T) to generate a sine signal. The output parameters x and t are the signal and time vectors, respectively. The input parameters are f0 (signal frequency in Hz), fs...
3. Show that Hertzian dipole antenna pattern is perpendicular to its antenna axis and draw [2]...
3. Show that Hertzian dipole antenna pattern is perpendicular to its antenna axis and draw [2] its radiation pattern in far-field region.
Use Matlab Plot the radiation pattern of Yagi Uda array (with 4-directions) &write the characteristics
Use Matlab Plot the radiation pattern of Yagi Uda array (with 4-directions) &write the characteristics
2) a). The resistivity of a wire varies with its length area of cross-section mass material...
2) a). The resistivity of a wire varies with its length area of cross-section mass material b) Given the units of a physical quantity. Choose the correct relation (J is for Joule, V is for volt, C is for Coulomb) A) J = CV B) J = VA C) J = C/A D) V = J C c) A charge of 3 C moving in a uniform electric field experiences a force 3000 N. The potential difference between two points...
The electrical resistance of a wire varies directly as its length and inversely as the square...
The electrical resistance of a wire varies directly as its length and inversely as the square of its diameter. A wire with a length of 200 inches and a diameter of one-half of an inch has a resistance of 10 ohms. Find the electrical resistance in a 500 inch wire with the same diameter. Group of answer choices 25 ohms 50 ohms 200 ohms 400 ohms
To complete this exercise you need a software package that allows you to generate data from...
To complete this exercise you need a software package that allows you to generate data from the uniform and normal distributions. (i) Start by generating 500 observations xi - the explanatory variable - from the uniform distribution with range [0,10]. (Most statistical packages have a command for the Uniform[0,1] distribution; just multiply those observations by 10.) What are the sample mean and sample standard deviation of the xi? (ii) Randomly generate 500 errors, ui, from the Normal[0,36] distribution. (If you...
In an XRD pattern using Cu Kα radiation, a certain cubic crystal shows peaks at 2θ...
In an XRD pattern using Cu Kα radiation, a certain cubic crystal shows peaks at 2θ values (in degrees) of 44.3, 64.4, 81.6, 98.0. It is known that the size of the cubic crystal is greater than 2.5 Angstroms. Based on this information and the location of the peaks, we conclude that the lattice of the crystal is 1. simple cubic                        2. face centered cubic 3.     body centered cubic        4.    none of the other choices
1-The length of a complete business cycle- A-varies from about 1 to 2 years to as...
1-The length of a complete business cycle- A-varies from about 1 to 2 years to as long as 5 years. B-is generally about 3 years. C-varies greatly in duration and intensity. 2. Even though the United States has an unemployment compensation program that provides income for those out of work, should we still worry about unemployment? A-Yes, because the unemployment compensation program merely gives the unemployed enough funds for basic needs. B-Yes, because the unemployment compensation program is not available...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT