我是靠谱客的博主 美满麦片,这篇文章主要介绍MATLAB画向量图,现在分享给大家,希望可以做个参考。

二维向量画图使用函数quiver。

帮助

quiver(X,Y,U,V) plots velocity vectors as arrows with components (u,v)  at the points (x,y).  The matrices X,Y,U,V must all be the same size  and contain corresponding position and velocity components (X and Y  can also be vectors to specify a uniform grid).  quiver automatically  scales the arrows to fit within the grid.

X 和 Y 组成网格,分别包括网格的横坐标和纵坐标。

code:

N = 2;
h = quiver([0,1],[0,2], randn(N), randn(N));



最后

以上就是美满麦片最近收集整理的关于MATLAB画向量图的全部内容,更多相关MATLAB画向量图内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部