Mathematica中文论坛-非官方
标题:
豆粑粑 matlab 画黑白colormap
[打印本页]
作者:
meatball1982
时间:
2017-8-8 19:04
标题:
豆粑粑 matlab 画黑白colormap
matlab .
surf with the panada colormap
black-white-black-white- ......
clear all
clc
clf
[x,y,z]=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
复制代码
fig_panda_colmap.png
(232.16 KB, 下载次数: 1324)
下载附件
2017-8-8 19:03 上传
欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/)
Powered by Discuz! X3.2