MATLAB: *PLOT FIELD VECTOR* matrix (sin(4*x+8*y),cos(4*x+8*y),0) Best Answer >> t = linspace(0,4*pi,100);>> [x,y] = ndgrid(t,t);>> u = sin(4*x+8*y);>> v = cos(4*x+8*y);>> quiver(x,y,u,v) Related SolutionsMATLAB: How to increase Quiver_tri arrow length Quiver_tri arrow lengthWhen I tried, the arrow length is adjusted with gird number.[x,y] = meshgrid(0:0.5:2,0:0.5:2);u = cos(x).*y;v = sin(x).*y;figurequiver(x,y,u,v)[x,y] = meshgrid(0:0.2:2,0:0.2:2);u = cos(x).*y;v = sin(x).*y;figurequiver(x,y,u,v) MATLAB: No Arrows showing in plot When using quiver As the grid starts from 0 and you have used this zero in the reciprocal to get (u,v) you will get inf in the u,v.; quiver uses maximum value of u and v to scale the arrows and plot. Try to repalce inf with some other value or avoid zero. [x,y] = meshgrid(1:0.2:5,1:0.2:5);u = 2./x;v = 2.*y./(x.^2);figurequiver(x,y,u,v,1,'r') Related QuestionHow to select data from a quiver plot
Best Answer