Why can't I change the 'MaxHeadSize' property of a QUIVER handle using the SET command in MATLAB 7.10 (R2010a)?

23 views (last 30 days)
I would like to change the 'MaxHeadSize' property of my QUIVER object by using the SET command as follows:
x = [1:10];
y = ones(1,length(x));
u = zeros(1,length(x));
v = y;
q = quiver(x,y,u,v);
set(q, 'MaxHeadSize',0.5) ;
drawnow;
However, after I change the 'MaxHeadSize', there is no change to the arrow heads.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 14 Feb 2011
This is a bug with the 'MaxHeadSize' property of the QUIVER command in MATLAB 7.10 (R2010a). As a workaround, please set the 'MaxHeadSize' property directly in the QUIVER command itself.
x = [1:10];
y = ones(1,length(x));
u = zeros(1,length(x));
v = y;
q = quiver(x,y,u,v,'MaxHeadSize',0.5)

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Products


Release

R2010a

Community Treasure Hunt

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

Start Hunting!