📄 mm2804.m
字号:
x = -7.5:.5:7.5; % data[X Y] = meshgrid(x); % create plaid dataR = sqrt(X.^2 + Y.^2)+eps; % create sombreroZ = sin(R)./R;
subplot(2,2,1)surf(X,Y,Z,Z) % default color order
colormap(gray)
shading interp
axis tight off
title('Figure 28.4a: Default, Z')
subplot(2,2,2)
surf(X,Y,Z,Y) % Y axis color order
shading interp
axis tight off
title('Figure 28.4b: Y axis')
subplot(2,2,3)
surf(X,Y,Z,X-Y) % diagonal color order
shading interp
axis tight off
title('Figure 28.4c: X - Y')
subplot(2,2,4)
surf(X,Y,Z,R) % radius color order
shading interp
axis tight off
title('Figure 28.4d: Radius')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -