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 日

0 投票

L = 1 ;
x = linspace(-0.5,+0.5) ;
lambda = sin(pi*x/L) ;
plot(x,lambda)

カテゴリ

ヘルプ センター および File ExchangePhased 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