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

3 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 14 de Feb. de 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)

Más respuestas (0)

Categorías

Más información sobre Vector Fields en Help Center y File Exchange.

Productos


Versión

R2010a

Community Treasure Hunt

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

Start Hunting!

Translated by