quiver function(vector field)

2 Ansichten (letzte 30 Tage)
Austin
Austin am 6 Apr. 2015
Beantwortet: Star Strider am 6 Apr. 2015
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!

Antworten (1)

Star Strider
Star Strider am 6 Apr. 2015
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).

Kategorien

Mehr zu Vector Fields finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by