Info

This question is closed. Reopen it to edit or answer.

Please help with computing this question in MATLAB

1 view (last 30 days)
Stanton Ridley
Stanton Ridley on 21 Mar 2019
Closed: Sabin on 19 Dec 2022
Two infinite lines of charge, both parallel to the z-axis, lie in the x-z plane, one with density pi and located at x 2. - a, and the other with density -pi and located at x-a Write a Matlab function that would compute electric potential V at a point P(x, y) relative to the potential at the origin. Call this function with pi 2*10A-9 C/m, a 10 cm at x 7 cm, y 3 cm and at the origin and display the results. Hint: The electric potential difference between a point at a distance ri and another at a distance ra from a line charge of density p is equal to: V o is the electrical permittivity of free space and equal to 8.85*100-12 F/m P(xy) -a, 0) (a, 0)
  3 Comments
Stanton Ridley
Stanton Ridley on 21 Mar 2019
Kevin Phung Can you give a example program on solving this problem, I'm not entirely sure where I should start or how to write the code for this problem
Steven Lord
Steven Lord on 22 Mar 2019
Are you not sure where to start because you're not familiar with MATLAB, or are you not sure where to start because you're not familiar with the physics?
If the former, consider going through the MATLAB Onramp free self-paced course in the Tutorials on the Support section of the MathWorks website. This will teach you the basics of MATLAB which should allow you to complete (or at least start) on this assignment.
If the latter, you probably want to speak to your professor and/or teaching assistant (TA) for help understanding what you're being asked to solve.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!