豆粑粑 matlab 画黑白colormap
matlab .
surf with the panada colormap
black-white-black-white- ......
clear all
clc
clf
=peaks(100);
col_gray=gray(60);
col_mm=[];
for i=1:10
col_mm=[col_mm;
col_gray;
flipud(col_gray)];
end
h1=subplot(2,2,1)
surf(x,y,z,'edgecolor','none')
colormap(h1,'jet')
view(0,90)
axis tight
h2=subplot(2,2,2)
surf(x,y,z,'edgecolor','none')
shading interp
colormap(h2,gray)
view(0,90)
axis tight
h3=subplot(2,2,3)
surf(x,y,z,'edgecolor','none','FaceColor','interp','FaceLighting','gouraud')
camlight left
shading interp
colormap(h3,col_mm)
view(0,90)
axis tight
h4=subplot(2,2,4)
surf(x,y,z,'edgecolor','none','FaceColor','interp')
colormap(h4,col_mm)
view(0,90)
axis tight
页:
[1]