Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Sep 29, 2002
1
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