How do I plot the equipotential lines in matlab?

33 visualizaciones (últimos 30 días)
IceBear
IceBear el 8 de Abr. de 2021
Editada: Rik el 27 de Mayo de 2021
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!

Respuestas (1)

KSSV
KSSV el 8 de Abr. de 2021
L = 1 ;
x = linspace(-0.5,+0.5) ;
lambda = sin(pi*x/L) ;
plot(x,lambda)

Categorías

Más información sobre Discrete Data Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by