一、前言
首先,大家放松放松,先看一个函数,meshgrid
[X,Y] = meshgrid(xgv,ygv)
replicates the grid vectorsxgv
andygv
to produce a full grid. This grid is represented by the output coordinate arraysX
andY
. The output coordinate arraysX
andY
contain copies of the grid vectorsxgv
andygv
respectively. The sizes of the output arrays are determined by the length of the grid vectors. For grid vectorsxgv
andygv
of lengthM
andN
respectively,X
andY
will haveN
rows andM
columns.
就是说复制完整的xgv向量和ygv向量,