Answered step by step
Verified Expert Solution
Link Copied!

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;

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions