How do I turn off arrowhead using quiverm (Mapping Toolbox)
Show older comments
I am trying to get quiverm (part of the Mapping Toolbox) to plot lines, without arrowheads. This option is available for quiver, but it is not clear if it can be done with quiverm.
1 Comment
Mark Brandon
on 4 Nov 2022
Edited: Mark Brandon
on 4 Nov 2022
Accepted Answer
More Answers (1)
You could change the marker shape and then delete it using findobj.
%% Sample Data From Mathworks Help Page
load("wind","x","y","u","v")
lat = y(11:22,11:22,1);
lon = x(11:22,11:22,1);
dlat = v(11:22,11:22,1);
dlon = u(11:22,11:22,1);
figure
[latlim,lonlim] = geoquadline(lat,lon);
usamap(latlim,lonlim)
%% With the Arrows
quiverm(lat,lon,dlat,dlon)
figure
[latlim,lonlim] = geoquadline(lat,lon);
usamap(latlim,lonlim)
%% Without The Arrows
quiverm(lat,lon,dlat,dlon,'-b+')
delete(findobj(gca, 'Marker', '+'))
1 Comment
Mark Brandon
on 4 Nov 2022
Categories
Find more on Annotations 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!
