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

17 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 App Building 的更多信息

产品


版本

R2010a

Community Treasure Hunt

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

Start Hunting!

Translated by