How to make directions bigger in current plot?

I am using the current command (https://es.mathworks.com/help/antenna/ref/cavity.current.html) to plot the current distribution of an antenna with the current direction. I want to include such a plot in my final project but the arrows that indicate the direction are too tiny to be seen in the figure. I am trying to configure the plot to make the lines thicker but I haven't found how to do it.

回答 (1 件)

Voss
Voss 2024 年 7 月 2 日
編集済み: Voss 2024 年 7 月 2 日

1 投票

h = loopCircular;
% first, a plot with the original size arrows, for comparison
current(h,70e6,'Direction','on');
% next, a plot with longer arrows
current(h,70e6,'Direction','on');
% factor to scale arrow length by, relative to what they are with AutoScale = 'off'
scale_factor = 0.15;
% apply the scale factor
h = findall(gcf,'Type','quiver');
h.AutoScale = 'off';
h.UData = h.UData*scale_factor;
h.VData = h.VData*scale_factor;
h.WData = h.WData*scale_factor;

1 件のコメント

Voss
Voss 2024 年 7 月 2 日
@Jorge Rodríguez Pérez: If this answer worked for you, please "Accept" it. Thanks!

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

カテゴリ

ヘルプ センター および File ExchangeVector Fields についてさらに検索

質問済み:

2024 年 7 月 2 日

コメント済み:

2024 年 7 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by