electric field distribution above the contour as continuous lines ?

조회 수: 4 (최근 30일)
Mary Jon
Mary Jon 2014년 3월 27일
답변: Pratik 2024년 9월 3일
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?

답변 (1개)

Pratik
Pratik 2024년 9월 3일
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!

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by