ex4_25.m
来自「源代码集合」· M 代码 · 共 17 行
M
17 行
img_tt=imread('tiantan.jpg');
whos img_tt
image(img_tt), set(gca,'Visible','off')
imwrite(img_tt,'tiantan.bmp','bmp');
[X,map]=rgb2ind(img_tt,128);
image(X); colormap(map)
[x,y] = meshgrid(-3:0.1:3,-2:0.1:2);
z=(x.^2-2*x).*exp(-x.^2-y.^2-x.*y);
surface(x,y,z,double(X),'FaceColor','texturemap','EdgeColor','none')
colormap(map), grid
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?