Statistics Toolbox | ![]() ![]() |
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
pdist
![]() | skewness | std | ![]() |