2.peaks/meshgrid/surf

  1. peaks(n):MTLAB提高peaks函数,产生凹凸有致的曲面,n越大,相邻点间隔越小,曲线越光滑。
  2. [x,y]=meshgrid(1:1:3):x产生每行相同矩阵1、2、3;y产生每列相同矩阵1、2、3;
  3. surf:surf(Z)  creates a three-dimensionalshaded surface from the z components in matrix Z,using x = 1:n and y = 1:m,where [m,n] = size(Z). 

猜你喜欢

转载自blog.csdn.net/cuicui666666/article/details/81042316