Question

In: Electrical Engineering

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

% Fmax maximum power function (W/m^2)

% omegaP beam solid angle (sr)

% D Directivity

clc %clears the command window

clear %clears variables

% Initialize variables

L=1.5;

bL2=pi*L;

N=90;

% Perform calculations

i=1:1:N;

dth=pi/N;

th(i)=i*pi/N;

num(i)=cos(bL2.*cos(th(i)))-cos(bL2);

den(i)=sin(th(i));

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

Fmax=max(F);

Pn=F./Fmax;

omegaP=2*pi*dth*sum(Pn)

D=4*pi/omegaP

Fmax

Question 3: Run this program for different choices of the dipole length.

Solutions

Expert Solution

Re-write the MATLAB code by entering the input dipole length:

% 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

% Fmax maximum power function (W/m^2)

% omegaP beam solid angle (sr)

% D Directivity

clc %clears the command window

clear %clears variables

% Initialize variables

L=input('Enter the value of L=')

bL2=pi*L;

N=90;

% Perform calculations

i=1:1:N;

dth=pi/N;

th(i)=i*pi/N;

num(i)=cos(bL2.*cos(th(i)))-cos(bL2);

den(i)=sin(th(i));

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

Fmax=max(F);

Pn=F./Fmax;

omegaP=2*pi*dth*sum(Pn)

D=4*pi/omegaP

Fmax


Related Solutions

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...
Write a .m function file on MATLAB that reads the parameters stored in the file missile...
Write a .m function file on MATLAB that reads the parameters stored in the file missile data.txt into MATLAB. The function should have the following declaration: function [X0, Y0, Z0, m0, mf, Thmag0, theta, phi, Tburn] = read input( input filename, M id) where input filename is a string variable denoting the name of the file to be read and M_id is an integer which denotes the missile ID. The outputs are the initial position (X0, Y0, Z0), initial and...
Construct a bridge-controlled rectifier with R-L loads using Matlab/Simulink software. Circuit parameters – can be either...
Construct a bridge-controlled rectifier with R-L loads using Matlab/Simulink software. Circuit parameters – can be either calculating, refer to any sources (textbook, journal, or technical manual) or assumption a. Describe the circuit designed, parameters selection and output signal outcomes b. Constant the firing angle, then discuss the effect of changing L to see the operation of CCM and DCM. c. Constant the L, then discuss the effect of changing the firing angle to see the operation of CCM and DCM....
show the MATLAB Code with comments and Write an .m file in MATLAB, that records audio...
show the MATLAB Code with comments and Write an .m file in MATLAB, that records audio (you can record your own voice for 20 seconds), takes Fourier transform of the signal (probably FFT).
Develop a matlab script file to calculate the practical single phase transformer parameters. The program should...
Develop a matlab script file to calculate the practical single phase transformer parameters. The program should ask the user to provide the following individually: S_rated V1_rated V2_rated With secondary shorted P1 V1 With primary open P2 I2 The program should calculate Req Xeq Zeq Gc Ym Bm Make sure your code will pronmpt a message like: “Enter the real power at the primary winding when the secondary winding is shorted, P1=). Do the same for all parameters S, V1_rated, V2_rated,...
1. Open m file of sampandquant, uniquan and Prelab4 in MATLAB. a. Set the quantization levels...
1. Open m file of sampandquant, uniquan and Prelab4 in MATLAB. a. Set the quantization levels of PCM (L) as 2 and 32. Compare your results. b. Why did we choose the cut-off frequency of the ideal LPF as 30 Hz. What happens for small or very big values of the cut-off frequency? c. Change the message signal as : xsig = cos(2pit) + cos(2pit) d. First set the quantization levels of PCM (L) as 2 and 32. Compare your...
Write a Matlab script-file probl1.m to execute the requested commands (as much as possible) in the...
Write a Matlab script-file probl1.m to execute the requested commands (as much as possible) in the exercises below. Increase N a number of times according to N = 4, 8, 16, 32, 64, 128, . . . (1) Determine for each N the (exact) error. (2) Determine for N ≥ 16 also the convergence ratio q(h/2). This script should be based on a function-file trap.m (trapezoidal integration) as follows: function [totarea] = trap(N) format long; a = 0; b =...
For this assignment, using MATLAB you are to read from an Excel file “theInputFile.xlsx” an undetermined...
For this assignment, using MATLAB you are to read from an Excel file “theInputFile.xlsx” an undetermined number of rows and columns. The first task of your program is to find out if the data in the file is in a square matrix. If it is not square the program will give us a statement telling us the data is not complete. If it is square then the program proceeds and will find the average of the rows one row at...
Matlab Design a FIR filter directly using fir1 function in matlab with parameter M = 50....
Matlab Design a FIR filter directly using fir1 function in matlab with parameter M = 50. Design FIR filters with different M = 5, 10, 50, 100, 500 and plot their frequency responses H(e j?) on the same figure.
(1)Using the Matlab code developed in Software Assignment #1: a. Convert the code that generates the...
(1)Using the Matlab code developed in Software Assignment #1: a. Convert the code that generates the random number (H,T) with equal probabilities into a function called myBernolli(p, S) that takes as an input the probability of success p and S is the outcome defined as success (either T or H) and returns the outcome of the trial (either T or H). b. Test that your function is actually producing the successful outcome with probability p by running the function in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT