I am having a difficulty in understanding the code.

quiver(xp(3:5:Nx1),yp(3:5:Ny1),vxp(3:5:Ny,3:5:Nx1),vyp(3:5:Ny1,3:5:Nx1),'w')
What does this signify?

 Accepted Answer

quiver is a function which is used to plot vectorial directions. It needs locations (x,y) and the vector components (vx,vy) at the locations.
In your case (xp,yp) are the locations and (vxp,vyp) are the vector components at the locations. 3:5:Nx1 means the values are picked from 3 to Nx1 be skipping five elements in between.

More Answers (0)

Categories

Asked:

on 16 Aug 2020

Commented:

on 16 Aug 2020

Community Treasure Hunt

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

Start Hunting!