Prev: return to begin of function
Next: Memory leak.
From: Mohammad aljabarat on 20 Apr 2010 05:22 please anyone help me :( Computing the electric field due to multiple point charges obeys Write a MATLAB function get_efield_points that accepts the charge magnitudes {q1,q2,…qn}, the desired location of the electric field intensity, and the cartesian coordinate vectors for each point charge in the system. The output of the function should return the electric field intensity vector E.
From: Rune Allnor on 20 Apr 2010 05:56 On 20 apr, 11:22, "Mohammad aljabarat" <medo...(a)hotmail.com> wrote: > please anyone help me :( 1) Read the homework assignment carefully 2) Find out what textbook of yours covers the material 3) Find the textbook 4) Read the table of contents, to find out what chapter covers the material 5) Look it up 6) Read the chapter 7) Do the excercises 8) Re-read the homework assignment 9) Find out what method you used when studing the textbook applies to the homework assignment 10) Apply the methods to the homework assignment 11) Hand in assignment Rune
From: Roger Stafford on 20 Apr 2010 16:06 "Mohammad aljabarat" <medo_jb(a)hotmail.com> wrote in message <hqjrnr$mum$1(a)fred.mathworks.com>... > please anyone help me :( > > Computing the electric field due to multiple point charges obeys > Write a MATLAB function get_efield_points that accepts the charge magnitudes {q1,q2,…qn}, the desired location of the electric field intensity, and the cartesian coordinate vectors for each point charge in the system. The output of the function should return the electric field intensity vector E. -------------- I will give just a little help, Mohammad, but not so much as to be unfair to your fellow students. You're dealing with Coulomb's law here. Ask yourself this quesion. How much force does an electric charge q1 at a certain point P1 exert on a change q at another point P if their distance apart is d, and in what direction does this force point? The electric field around q1 is defined as the force that would be exerted at a point P containing a "test" charge q = 1. So phase one of your effort should be to derive a formula for the three components of the force exerted on a unit charge at point P = (x,y,z) from a charge q1 located at point P1 = (x1,y1,z1). You have to figure out from these seven quantities, x, y, z, x1, y1, z1, and q1, how far apart the points are and how Coulomb's force on the unit test charge splits up into three components along the three axes. That means you have to make use of the information about what direction the force is pointed in. After you solve that, in phase two it's easy to generalize into an arbitrary number of charges q1 at P1, q2 at P2, etc. It's a simple matter of adding up all the components along each of the three directions and then computing the length of the resulting vector to get its "intensity" - that is, the electric vector's length. As a last desperate measure you should follow Rune's good advice, particularly 6). There's no substitute for a careful reading of your textbook in a subject like yours. Roger Stafford
|
Pages: 1 Prev: return to begin of function Next: Memory leak. |