Navigation

Operators and Keywords

Function List:

C++ API

Function File: y = squareform (x)

Function File: y = squareform (x, "tovector")

Function File: y = squareform (x, "tomatrix")

Convert a vector from the pdist function into a square matrix or from a square matrix back to the vector form.

The second argument is used to specify the output type in case there is a single element.

See also: pdist

Package: statistics