Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please solve using matlab! send me the code and the drawings everything! a = % 2. One point charge and one point-line charge espo 8.85e-12;
please solve using matlab! send me the code and the drawings everything!
a = % 2. One point charge and one point-line charge espo 8.85e-12; k 1/(4*pi*espo); 91 = -1e-3; 2.2; Q2 1e-3; L = 4; lamda = Q2/L; [x,y] = meshgrid (-2:0.2:2, 0.1:0.2:2); syms X; ri = sqrt(x.^2 + (y - a).^2); r2 = sqrt((x - X).^2 + y.^2); V1 = k*91./r1; ; V2 k*int(lamda./r2, X, -L/2, 1/2); V = double (V1 + V2); [px, py] = gradient(V, 0.1, 0.1); subplot(2, 2, 1) contour(x, y, V) subplot(2, 2, 2) surf(x, y, V) subplot(2, 1, 2) quiver(x, y, -px, -py, 2) a = % 2. One point charge and one point-line charge espo 8.85e-12; k 1/(4*pi*espo); 91 = -1e-3; 2.2; Q2 1e-3; L = 4; lamda = Q2/L; [x,y] = meshgrid (-2:0.2:2, 0.1:0.2:2); syms X; ri = sqrt(x.^2 + (y - a).^2); r2 = sqrt((x - X).^2 + y.^2); V1 = k*91./r1; ; V2 k*int(lamda./r2, X, -L/2, 1/2); V = double (V1 + V2); [px, py] = gradient(V, 0.1, 0.1); subplot(2, 2, 1) contour(x, y, V) subplot(2, 2, 2) surf(x, y, V) subplot(2, 1, 2) quiver(x, y, -px, -py, 2)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started