Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

MatLab contour plot help

Status
Not open for further replies.

Louielip

Electrical
Sep 29, 2002
1
0
0
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.
Back
Top