I\'d like to know how to draw a graph with 2 electric charges Q and -Q and their total E, for a specific point (eg (4,5)), with contour f.. My M-file actually scans the area (fr
You need to give some more information in your question: What is the problem you are having? What have you tried?
However, assuming that z(i,j) is your electric field calculated on a 2d grid, just call contourf after your for loops as
z(i,j)
for
contourf(z)