你可以自己用命令 help peaks查看啊 ------------------------------------------------------ peaks is a function of two variables, obtained by translating and scaling Gaussian distributions, which is useful for demonstratingmesh, surf, pcolor, contour, and so on. Z = peaks; returns a 49-by-49 matrix. Z = peaks(n); returns an n-by-n matrix. Z = peaks(V); returns an n-by-n matrix, where n = length(V). Z = peaks(X,Y); evaluates peaks at the given X and Y (which must be the same size) and returns a matrix the same size. ------------------------------------------------ 括号内是矩阵的规模