Drawing field lines with MATLAB


by Minakami
Tags: drawing, field, lines, matlab
Minakami
Minakami is offline
#1
Apr26-11, 01:22 PM
P: 4
1. The problem statement, all variables and given/known data
Consider a uniformly charged half spherical shell. The total charge is Q and the radius is R.

a) Calculate the electric field as a function of z for 5R < z < 5R.
b) Draw equipotential curves in the xz-plane for 5R < x, z < 5R with at least 8 equallyspaced
curves.



2. Relevant equations



3. The attempt at a solution
I solved for the electric fields in the region z>R and z<R so part a) is done.
I'm trying to plot this field and the equipotential lines in MATLAB but I couldn't figure out how. I haven't really used MATLAB before but I think MATLAB can definitely do this.
I understand that the equipotential lines are perpendicular to the electric field lines. So maybe I can use this fact to draw the equipotential lines...
Attached Thumbnails
12.jpg  
Phys.Org News Partner Science news on Phys.org
Better thermal-imaging lens from waste sulfur
Hackathon team's GoogolPlex gives Siri extra powers
Bright points in Sun's atmosphere mark patterns deep in its interior
viscousflow
viscousflow is offline
#2
Apr27-11, 02:42 AM
P: 273
Investigate the function 'quiver3'. However, I am not sure if it accepts any other coordinate system other than cartesian.


Register to reply

Related Discussions
Drawing equipotential lines and field lines Introductory Physics Homework 3
Software for drawing lines, squares, curves etc. Math & Science Software 4
Drawing Field Lines Introductory Physics Homework 1
Drawing Electric field lines Introductory Physics Homework 3
Drawing Electric Field Lines and Equipotential Lines Introductory Physics Homework 6