How to add an XLabel | YLabel | Title to a clustergram
Demo:
cgo = clustergram(rand(20,20));
addXLabel(cgo, 'X LABEL')
addYLabel(cgo, 'Y LABEL')
How to access XLabel | YLabel | Title to a clustergram
2 Methods:
1) save the output handles to the addXLabel, addYLabel, addTitle function.
2) get the axis handle using findall along with the axis tag.
Demo:
cgo = clustergram(rand(20,20));
xlbl = addXLabel(cgo, 'X LABEL');
ylbl = addYLabel(cgo, 'Y LABEL');
ttl = addTitle(cgo, 'TITLE');
cgfig = findall(0,'type','figure', 'Tag', 'Clustergram');
cgax = findobj(cgfig, 'type','axes','tag','HeatMapAxes');
Best Answer