How do I plot the equipotential lines in matlab?

33 ビュー (過去 30 日間)
IceBear
IceBear 2021 年 4 月 8 日
編集済み: Rik 2021 年 5 月 27 日
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)

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by