I am having a difficulty in understanding the code.

 采纳的回答

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.

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by