Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Help me in Matlab. (plz edit my code)

1 visualización (últimos 30 días)
jonny
jonny el 6 de Abr. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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?

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by