MATLAB Code for Dipole in Vacuum

profilela_bluu
matlab_3_.pdf

EENG 3303 Matlab 3, V2, Monday_ Oct 20 RE: Contours of constant voltage for a dipole ( ref Fig 3-14), V2 has part (c) added in. a)write a program that will plot constant voltage curves for a dipole in a vacuum with inputs based on following. ( one page attached, personal notes , guide?) Physical data

Dipole charge 910 ( )q C−= , 610 ( )d m−= voltage curves of interest 1, 4, 9, 16 (volts)V = ± ± ± ± Computer data Dipole axis ( z axis ) is vertical Take y axis as horizontal N=100 number of points per constant V curve Start with theta ( / 2 to / 2 100 equally spaced valuesπ π− ) Use labels ( z, axis, y axis)

Hint, you may want to work on positive side curves first, then by switching in a reproduced code z z→ − ( voila) you get negative side curves. Minimum check: Double check curves in notes(text) that your curves have the correct appearance. b) add a short piece of code to your existing code part a

which will plot 4 points. These points are indicative of locations on z and y axis that are a distance 100 *d from the origin. ( to check if curves are far enough away from origin R d>> )

c) By hand sketch draw in a set of E-field lines showing direction of E with arrows.

Attach code and one figure