Statistics Toolbox
  Go to function:
    Search    Help Desk 
squareform    See Also

Purpose   

Reformat the output of pdist into a square matrix.

Syntax

Description

S = squareform(Y) reformats the distance information returned by pdist from a vector into a square matrix. In this format, S(i,j) denotes the distance between the i and j observations in the original data.

See Also

See pdist.



[ Previous | Help Desk | Next ]