quiver function(vector field)

4 次查看(过去 30 天)
Austin
Austin 2015-4-6
Above is my vector field generated. The arrows are all squeezed together and its very hard to see the arrows clearly. can anyone advise me on how can i make my arrows in my vector field more visible such as the diagram below:?
below are my codes ive used:
clc clf
a=0; b=100; c=0; d=1980;
x0=0; y0=1800;
f=@(x,y)0.30*y.*(1-(y./2500)); A=@(x,y)x-x+1; B=@(x,y)f(x,y); [x y]=meshgrid(0:2:100,0:100:1980)
hold on
quiver(x,y,A(x,y),B(x,y),1,'linewidth',1,'color','blue','linewidth',1)
axis([a b c d])
kindly advise,Thanks!

回答(1 个)

Star Strider
Star Strider 2015-4-6
You can change some of the properties of the arrows. See the documentation on Quiver Series Properties for details. The online documentation (for R2015a) uses the HG2 syntax, but the set function still works (and is the only way to change their properties in versions prior to R2014b).

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by