When I do try to change it, it does not give me the correct String for
the integer I want to replace it with.
After the creation of the dendrogram, the numbers need to correspond
with particular strings. Any help?
some of the things i tried...im a newbie so im kinda lost.
abe = set(findobj(gca,'XTickLabel','5'),'XTickLabel','putative');
set(gca,'XTickLabel',{'putative','family'});
thanks,
abe
Nothing is working so far. Any advice?
Thanks in advance
Abe
One solution is to try to get hold of version 4.1 of the Statistics Toolbox.
We made this a lot easier in the new version. If you are using the Student
version or can't get hold of 4.1 for other reasons then something like this
should help.
X = rand(10,2);
Y = pdist(X,'cityblock');
Z = linkage(Y,'average');
[H, T] = dendrogram(Z);
% get the handle of the axis
hAxis = get(H(1),'parent');
% Get the permutation of the nodes
perm=str2num(get(hAxis,'XtickLabel'));
% label data
labels =
{'one','two','three','four','five','six','seven','eight','nine','ten'};
% Create the XTickLabels
set(hAxis,'XTickLabel',labels(perm))
HTH,
Rob Henson
The MathWorks, Inc.
Rob Henson's script helped me label X-axis in the Dendrogram I
plotted. But I would really like to rotate the X-axis label by 90
degrees to the right. This is the only way to make the axis-labels
readable. Could any one kindly provide any help?
Jojo Jacob