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!

Réponses (1)

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

Catégories

En savoir plus sur Phased Array Design and Analysis dans Centre d'aide et File Exchange

Question posée :

le 8 Avr 2021

Modifié(e) :

Rik
le 27 Mai 2021

Community Treasure Hunt

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

Start Hunting!

Translated by