How to make directions bigger in current plot?
Show older comments
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.
Answers (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 Comment
Voss
on 2 Jul 2024
@Jorge Rodríguez Pérez: If this answer worked for you, please "Accept" it. Thanks!
Categories
Find more on Vector Fields in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
