example_contour_color.m
来自「基础程序」· M 代码 · 共 15 行
M
15 行
% example_contour_color.m
% 颜色填充的等值线图
[x,y,z]=peaks(30);
% 图1:pcolor
subplot(1,2,1)
pcolor(x,y,z);
shading interp;
axis square;
title('figure1: pcolor');
% 图2:contourf
subplot(1,2,2)
contourf(x,y,z);
axis square;
title('figure2: contourf');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?