mm2721.m

来自「matlab7.0这本书的源代码」· M 代码 · 共 12 行

M
12
字号
[X,Y,Z] = peaks;

subplot(1,2,1)
pcolor(X,Y,Z)shading interp  % remove the grid lines
axis squaretitle('Figure 27.21a: Pseudocolor Plot')
subplot(1,2,2)
contourf(X,Y,Z,12) % filled contour plot with 12 contours
axis square
xlabel('X-axis'), ylabel('Y-axis')
title('Figure 27.21b: Filled Contour Plot')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?