Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Help me in Matlab. (plz edit my code)

1 Ansicht (letzte 30 Tage)
jonny
jonny am 6 Apr. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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!

Translated by