필터 지우기
필터 지우기

quiver function(vector field)

조회 수: 1 (최근 30일)
Austin
Austin 2015년 4월 6일
답변: Star Strider 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