|
This had me flummoxed for a while as well. Hua's suggestion is good but incomplete. After turning off the auto-scaling (simpler to do through S=0 rather than through properties), all the vectors will be scaled to axes units. One can then rescale all to a uniform factor by multiplying the 'Udata' & 'VData' properties by that scaling factor
qscale = 0.1 ; % scaling factor for all vectors
h1 = quiver(X1,Y1,U1,V1,0) ; % the '0' turns off auto-scaling
h2 = quiver(X2,Y2,U2,V2,0) ;
hU = get(h1,'UData') ;
hV = get(h1,'VData') ;
set(h1,'UData',qscale*hU,'VData',qscale*hV)
hU = get(h2,'UData') ;
hV = get(h2,'VData') ;
set(h2,'UData',qscale*hU,'VData',qscale*hV)
|