| Statistics Toolbox | Search  Help Desk |
| squareform | See Also |
Purpose
pdist into a square matrix.
Syntax
S = squareform(Y)
Description
S = squareform(Y) reformats the distance information returned bypdist 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
Seepdist.