• 2022-07-24
    在使用surf绘制空间曲面时,需要先生成网格点矩阵。若绘图区域为-2A: x=-2:0.5:2; y=-3:0.5:3; z=3*x.*y.^2; surf(x,y,z)
    B: x=-2:0.5:2; y=-3:0.5:3; [x,y]=meshgrid(x,y); z=3*x.*y.^2; surf(x,y,z)
    C: x=-2:0.5:2; y=-3:0.5:3; z=3*x*y^2; surf(x,y,z)
    D: x=-2:0.5:2; y=-3:0.5:3; z=3*x.*y^2; surf(x,y,z)