Guest User

Untitled

a guest
Jan 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. datdat = randn(5,10);
  2. regregnames = {'A', 'B', 'C', 'D', 'E'};
  3. colors = cell(1,size(datdat,2));
  4. for i=1:size(datdat,2)
  5. colors{i} = [1,1,1];
  6. end
  7. colors{3} = [1,0,0];
  8. s.Labels = arrayfun(@num2str, 1:size(datdat,2), 'UniformOutput', false);
  9. s.Colors = colors;
  10. clscls = clustergram(datdat, 'RowLabels', regregnames, 'ColumnLabels', s.Labels, 'ColumnLabelsColor', s, 'LabelsWithMarkers', true);
Add Comment
Please, Sign In to add comment