electric field distribution above the contour as continuous lines ?

5 ビュー (過去 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 件のコメント
Mary Jon
Mary Jon 2014 年 4 月 2 日
HI all
can you help me to solve the above problem?

サインインしてコメントする。

回答 (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 Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by