Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Help me in Matlab. (plz edit my code)
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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?
0 Commenti
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!