%This is a basic heatmap creation script. You'll want to modify to add your %own labels and title. Also keep in mind that you can use a variety of %different color schemes -- just make sure they are meaningful. Here is a %link to the different color scales that are available: %http://www.mathworks.com/help/matlab/ref/colormap.html %The redbluecmap is very common in systems biology literature. % Ok -- let's get started: % Import data for plotting d = importdata('data.txt'); text = d.textdata; data = d.data'; data1(1,:) = data(6,:); data1(2,:) = data(5,:); data1(3,:) = data(4,:); data1(4,:) = data(3,:); data1(5,:) = data(2,:); data1(6,:) = data(1,:); Column = [0, 0.001, 0.01, 0.1, 1, 10]; Rows = [0, 0.002, 0.02, 0.2, 2, 20]; HM = HeatMap(data1,'RowLabels',Rows,'ColumnLabels',Column,'Symmetric','false','colormap','redbluecmap'); addYLabel(HM,'Inhibitor X'); addXLabel(HM,'Erlotinib'); addTitle(HM,'Dual Inhibition of Cell Viability');