electric field distribution above the contour as continuous lines ?

4 vues (au cours des 30 derniers jours)
Mary Jon
Mary Jon le 27 Mar 2014
this code calculate electric field distribution
% Plot the electric field distribution
figure;
v;
[ex,ey]=gradient(v);
quiver(-ex,-ey);
hold all;
contour(v)
can I making these Arrows of electric field distribution as continuous lines instead of Arrows intersect the contour? How can do that?

Réponses (1)

Pratik
Pratik le 3 Sep 2024
Hi Mary,
To represent the electric field distribution as continuous lines instead of arrows, you can use the streamline() function in MATLAB.
Please refer to the documentation of "streamline" function for more information:
I hope this helps!

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by