Help me in Matlab. (plz edit my code)
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
This is my code:
A= xlsread('C:\Users\Tan Huu\Documents\MATLAB\1.xlsx');
U=textdata(:,1);
V=U';
Y=V(2:length(V));
Y(:);
B=zeros(length(A(:,1)));
for i=1:(length(A(:,1))-1)
for j=(1+1):length(A(:,1))
B(i,j)=distance(A(i,:),A(j,:));
B(j,i)=B(i,j);
end
end
B(:);
C=squareform(B);
D=linkage(C,'single');
X=Y;
dendrogram(D,'labels',X)
and left of this image is input Matrix right of this image is result http://i306.photobucket.com/albums/nn247/tanbk/Matlab.png
My question is: Why my result not begin form 1 which from 8.5?
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!