How do I plot the equipotential lines in matlab?

How do I plot the equipotential lines in matlab (matlab novice here) from the calculated electric potential of a thin rod with ends at -0.5 m and 0.5 m, and has a non-uniform linear charge density of the form: lambda=sin(pi*x/L).
Thank you!

답변 (1개)

KSSV
KSSV 2021년 4월 8일
L = 1 ;
x = linspace(-0.5,+0.5) ;
lambda = sin(pi*x/L) ;
plot(x,lambda)

카테고리

도움말 센터File Exchange에서 Phased Array Design and Analysis에 대해 자세히 알아보기

질문:

2021년 4월 8일

편집:

Rik
2021년 5월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by