相关代码 |
|
[x,y,z]=peaks; subplot(1,2,1) contour3(x,y,z,16,'s') grid, xlabel('x-axis'), ylabel('y-axis') zlabel('z-axis') title('contour3 of peaks'); subplot(1,2,2) contour(x,y,z,16,'s') grid, xlabel('x-axis'), ylabel('y-axis') title('contour of peaks');