Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is suppose to be in matlab code. Thank you! If we evaluate (1) as a functio

ID: 3787831 • Letter: T

Question

This is suppose to be in matlab code. Thank you!

If we evaluate (1) as a function of 0 where ovaries from 0 to 1t, we obtain the radiation pattern of the current distribution. This radiation pattern describes the strength with which the current radiates outgoing waves in different directions, or the strength with which it receives waves from from different directions. I would like you to write a Matlab program that evaluates (1) for different current distributions (for different I (z)'s) and different lengths of the wire. You will be evaluating (1) numerically, so an approximation is needed that can be computed. This approximation is achieved by approximating the integral in (1) with the approximately equal discrete summation: E(0) Az Sin where the current distribution has been divided into N discrete pieces of length Az. If the length of the wire is L, en the z-location of the nth point on the current distribution is (n 1)L 0.5L

Explanation / Answer

clear all;
close all;
clc
syms L c f I z n j N pi P theta y F
pi = 90;
theta = [0 pi];
c = 50;
f = 150;
n = 1;
N = 3;
j = 5;

L = (0.5*c)/f
if(1<=n<=N)  
     z = abs(-0.5*L + (((n-1)*L)/(N-1)))
end

I = cos((pi*(z))/L)
y = exp((j*2*pi*f*z*cos(theta))/c) %to find e^value
x = I*y*dirac(z)   %delta value found using dirac function
F = symsum(x,n)                %to find summation of x for n
P = abs(sin(theta)*F)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote