https://blog.csdn.net/sinat_17306241/article/details/102732746 MATLAB画图颜色渐变
https://blog.csdn.net/rothschildxiaobo/article/details/88736539 Matlab 绘制三维散点图并进行曲面拟合
https://blog.csdn.net/baishuo8/article/details/81331245 【MATLAB】MATLAB 可视化之曲面图与网格图
https://blog.csdn.net/hhhhhyyyyy8/article/details/77870736 MATLAB中peaks函数的用法
https://blog.csdn.net/glb562000520/article/details/10329471Matlab之peaks,mesh,meshgrid函数
已知XYZ几点,画出三维曲面:
x=[0,2,4,2,4,0,0];
y=[0,2,4,0,0,4,2];
z=[-7,-6,0,-6,-3,-4,-5];
ti = 0:1:4;
[XI,YI] = meshgrid(ti,ti);
ZI = griddata(x,y,z,XI,YI);
surf(XI,YI,ZI)
xlabel('X');
ylabel('Y');
zlabel('Z');
title('lv');
surf(XI,YI,ZI); mesh(XI,YI,ZI);