matlab 给出空间点的坐标画图

2024-11-09 00:40:44
推荐回答(1个)
回答(1):

可调用surf(x,y,z)
但是事先要讲x,y,z矩阵化,本例中还需要
x = reshape(x,11,11);
y = reshape(y,11,11);
z = reshape(z,11,11);
surf(x,y,z);
再用view调整视角,如
view([5,5,2]);