Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MatLab contour plot help

Status
Not open for further replies.

Louielip

Electrical
Joined
Sep 29, 2002
Messages
1
Location
CA
I have access to both MatLab and Maple, but don't really know how to use either that well. I've been trying to solve the following problem for over a week now....and haven't got anywhere. Any help would be much appreciated.

I need to make a contour plot, for points in the xy plane, of the electric potential of a system of three charges. The charges are q, 2q, 3q located at the vertices of an equilateral triangle in the xy plane:
(a/2,0,0), (-a/2,0,0), and (0,(sqrt(3))*(a/2),0) respectively. The potential is,

V(x,y,0)= k*q*a*f(x,y) where k = 8.99*10^9

where f(x,y) is a dimensionless function; set a=1 to make "a" the the unit of length. I need to use the countour plotting command, which can be used to plot contours of f(x,y) - which are the equipotentials of the system.

Thanks in advance,

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top