electric field distribution above the contour as continuous lines ?
4 次查看(过去 30 天)
显示 更早的评论
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
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!