- 积分
- 585
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-5-29
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
mycolorpoint=[[0.5 0.0 0.0];
[0.7 0.0 0.0];
[0.8 0.0 0.0];
[0.9 0.0 0.0];
[1.0 0.0 0.0];
[1.0 0.1 0.1];
[1.0 0.3 0.3];
[1.0 0.5 0.5];
[1.0 0.7 0.7];
[1.0 0.8 0.8];
[0.8 0.8 1.0];
[0.7 0.7 1.0];
[0.5 0.5 1.0];
[0.3 0.3 1.0];
[0.1 0.1 1.0];
[0.0 0.0 1.0];
[0.0 0.0 0.9];
[0.0 0.0 0.8];
[0.0 0.0 0.7];
[0.0 0.0 0.5]];
mycolorposition=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20];
mycolormap_r=interp1(mycolorposition,mycolorpoint(:,1),1:20,'linear','extrap');
mycolormap_g=interp1(mycolorposition,mycolorpoint(:,2),1:20,'linear','extrap');
mycolormap_b=interp1(mycolorposition,mycolorpoint(:,3),1:20,'linear','extrap');
mycolor=[mycolormap_r',mycolormap_g',mycolormap_b'];
mycolor=round(mycolor*10^4)/10^4;%保留4位小数
|
|