如何使用这个功能? 函数名是 generatecolormapthreshold,第一个参数是阈值,第二个参数是颜色
color= generatecolormapthreshold([1 10 25 30],[0 0.5 1; 0 1 0;1 0 0]); h = heatmap(fluS,'DayName','noofweek','ColorVariable','Max_Data','Colormap',color,'ColorLimits',[1 30]); h.FontSize=10; h.Title='\u70ed\u56fe';
表示范围 1-25 是 [0 1 1] 的颜色,25-30 是 [1 0 0] 的颜色。