Unfold

This command unfolds a matrix into a single column of data.

 

Syntax

Unfold [options];

Menu Equivalent

Data→Manipulate→Transform→Unfold a Matrix

Button Equivalent

Unfold.png

Available Options

Description of options

Data = Name | #Number

Specifies the data matrix to unfold. Rectangular, 3D, distance, and binary matrices may be unfolded.

Name = Name

Specifies the name for the new matrix. This name cannot be in use by another matrix already in memory.

Coords = Yes | No

Specifies whether to include the coordinates of each data value. The default is No. If Yes is chosen, the coordinates are either included as additional columns in the output matrix or in a separate matrix, depending on the choice given with the Separate parameter.

Separate = Yes | No

When Coords = Yes, this specifies whether to include the coordinates in the same matrix or in a separate coordinates matrix. If Separate = Yes, the name of the coordinates matrix can be specified with the CrdName command.

CrdName = Name

Specifies the name for the new coordinates matrix; it is only used when Coords = Yes and Separate = Yes. This name cannot be in use by another matrix already in memory, nor can it be identical to the value given with the Name parameter.

 

The following options apply only when the data matrix being unfolded is a distance matrix.

 

Shape = Full | Lower | Upper

This parameter specifies whether to unfold the entire matrix (Shape = Full), or only the lower or upper triangle. The latter options should be combined with the Diagonal parameter.

Diagonal = Yes | No

When the Shape parameter is Upper or Lower, this parameter specifies whether the diagonal is included in the unfolded column.