ex230.m
来自「精通MATLAB GUI设计 全书源代码! 其中动画设计、GUI实例相当不错」· M 代码 · 共 17 行
M
17 行
%****************************************************
%EX230.M
%功能:等高线绘制函数使用实例
%****************************************************
z=peaks; %绘制peaks图形
subplot(2,1,1) %子图设置
contour(z) %绘制peaks图形等高线图
subplot(2,1,2) %子图设置
[c,h]=contour(z,[3.8 1.5]);
clabel(c,h) %标注等高线图中的函数值,如图2-38
figure %新建图形窗口
subplot(2,1,1) %子图设置
[c,h]=contour(z,4);
clabel(c,h) %标注等高线图中的函数值
subplot(2,1,2) %子图设置
contourf(z,4) %如图2-39
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?