Reference no: EM132384426
MATLAB Assignment -
Answer 4 questions correctly and for each of them must:
- Each .m file must run on MATLAB without errors or warnings.
- To complete the question on all its parts (derivation, calculations and MATLAB code);
- Derivation and calculations must be submitted along with the plot or plots showing the output of the MATLAB code to EIS with a coversheet.
- To summarise: Material to be submitted through EIS FOR EACH QUESTION is: The code typed, The plots produced by the code and The derivation or calculations required to write the code or to answer to the questions.
Question 1 -
Using MATLAB/OCTAVE, plot the vector field
A→ = y2x^ - xy^ in the region - 2 < x < +2 and -2 < y < +2
Find the magnitude of the vector field at the point (x0, y0) = (3, 2).
Question 2 - Derive the magnetic field B inside and outside of an infinite thick wire with radius a = 1. The wire carries a uniformly distributed current I = 1 A in the direction outwards the page.
Plot the magnetic flux density in the region -2 < x < +2 and -2 < y < +2 that is internal to the wire and external to the wire. The expected result should look like Fig 1.
![2429_figure.png](https://secure.expertsmind.com/CMSImages/2429_figure.png)
Question 3 - Using MATLAB/OCTAVE and the Method of Moments (MoM), find the charge distribution on a cylindrical conductor whose radius is a = 0.01m and length L = 1m. The potential on the wire is V = 1V. You may assume that the charge is distributed uniformly within each section. Assume that the number of the sections is N = 5 and the step size is ΔL = 0.2m.
![2185_figure1.png](https://secure.expertsmind.com/CMSImages/2185_figure1.png)
Question 4 - For the indicated boundary conditions that are specified in the figure, derive analytically the electric potential distribution V(x, y) within the enclosed region by solving Laplace's equation (Hint: by separation of variables). Plot the potential distribution using FDM with:
a = 1 m
V0 = 25 V
![947_figure2.png](https://secure.expertsmind.com/CMSImages/947_figure2.png)
Compare and comment the results obtained using the analytical solution and the FD method.