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개)
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
2024년 7월 2일
@Jorge Rodríguez Pérez: If this answer worked for you, please "Accept" it. Thanks!
카테고리
도움말 센터 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

