colormap自定义

function color_map1 = colormap_gray_inverse(row_cmap)
 %Row_cmap is the level of the colormap
color_map1=zeros(row_cmap,3)  %colormap array
color_r = 0:1/(row_cmap-1):1 
color_g = 0:1/(row_cmap-1):1
color_b = 0:1/(row_cmap-1):1
color_map1(:,1) = 1-color_r
color_map1(:,2) = 1-color_g
color_map1(:,3) = 1-color_b
end

colormap_array(level,3)
R1,G1,B1
R2,G2,B2
R3,G3,B3

Rn,Gn,Bn

©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页