# Electromagnetic Field Theory - Matlab

Write several MATLAB functions that will solve these 3 problems. I have provided both the problems and the solutions, so all I need help with is the MATLAB coding.

I need to be able use other values as inputs, please do not set all of the parameters as fixed inputs.

Here are my variable inputs for each problem

Problem #1

Variable Input for the length of rod, # of revolutions and magentic field

Problem #2

Variable Input for Electric Field and Er

Problem#3

Variable input for Zo, Zl, and wavelength.

https://brainmass.com/physics/em-waves/electromagnetic-field-theory-matlab-155503

## SOLUTION This solution is **FREE** courtesy of BrainMass!

The attached Matlab scripts execute the tasks you specified.

The following are examples of use of the scripts:

>> Voltage = CalcInducedVoltage

Please type length of rod in cm = 50

Revolutions per minute = 90

Magnetic field in Tesla [Bx, By, Bz]= [0, 0, 2e-4]

Voltage =

2.3562e-004

>>

>> TransmissionLine

Type Line impedance in Ohm: [ real, imag ] = [50 0]

Type Load impedance in Ohm: [ real, imag ] = [30 -50]

Type wavelength in cm: 8

Gamma =

0.1011 - 0.5618i

Gamma = (0.101124) + i(-0.561798)

|Gamma| = 0.570826, theta_r = arg(Gamma) = -79.796Â°

S = 3.66012, l_max = 3.11338, l_min = 1.11338

>>

>> CalcPlaneWave

Please type material dielectric consant: 2.56

We assume the wave vector directed along the positive direction of the Z-axis

And represent the electric field as [E_x,E_y]*cos( omega*t - kz)

Type electric field amplitude in units of V/m: [E_x, E_y] = [0 20]

Type angular frequency in units of rad/s: omega = pi * 6e9

Results:

f = 3 GHz, u_p = 1.875e+008 m/s, eta = 235.625 Ohm

lambda = 6.25 cm, k = 100.531 rad/m

H = [H_x, H_y] = [0.0848806, 0]cos (1.88496e+010 t - 100.531 z) (A/m)

>>

https://brainmass.com/physics/em-waves/electromagnetic-field-theory-matlab-155503