figure(3) pcolor(time,yData',data1.ConVel') shading interp; colorbar; color_1=[0,0,1]; color_2=[1,1,1]; color_3=[1,0,0]; num12=45;num23=25; R_mat=[linspace(color_1(1),color_2(1),num12),linspace(color_2(1),color_3(1),num23)]; G_mat=[linspace(color_1(2),color_2(2),num12),linspace(color_2(2),color_3(2),num23)]; B_mat=[linspace(color_1(3),color_2(3),num12),linspace(color_2(3),color_3(3),num23)]; color_map_RGB=[R_mat',G_mat',B_mat']; colormap(color_map_RGB); xlabel('Time(min)');ylabel('Layer(0.5m)'); xlim([0.5,14]);ylim([0,45]);hTitle=title('W');box off; set(hTitle, 'FontSize', 12, 'FontWeight' , 'bold')
标签:mat,color,num23,num12,linspace,pcolor,色温,Matlab From: https://www.cnblogs.com/Nigel-ff/p/17977138