📄 democontour.m
字号:
% demoContour Demonstration of a contour plot
xg = linspace(-5,5,20); % grid vector
[X,Y] = meshgrid(xg,xg); % Create matrices of X and Y values
Z = 2 - X.^2 - Y.^2; % Vectorized evaluation of Z = f(X,Y)
contour(X,Y,Z) % Create the contour plot
axis('square')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -