Fold

This command folds a column into a data matrix.

 

Syntax

Fold [options];

Menu Equivalent

Data→Manipulate→Transform→Fold a Column

Button Equivalent

Fold.png

Available Options

Description of options

Data = Name | #Number

Specifies the data matrix containing the column to fold.

Column = Name | #Number

Specifies the column of the matrix specified by the Data command data to fold.

Name = Name

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

Type = Rect | 3D | Dist | Angle | Binary

Specifies the type of matrix to create from the folded column. Rectangular, 3D (cubic), distance, angle and binary matrices can be created.

 

The following options apply only when the data is being folded into a rectangular matrix.

 

Rows = Number

When Type = Rect, specifies the number of rows in the new matrix.

Cols = Number

When Type = Rect, specifies the number of columns in the new matrix.

 

The following options apply only when the data is being folded into a 3D matrix.

 

X = Number

When Type = 3D, specifies the size of the matrix in the x-direction.

Y = Number

When Type = 3D, specifies the size of the matrix in the y-direction.

Z = Number

When Type = 3D, specifies the size of the matrix in the z-direction.

 

The following option applies only when the data is being folded into a distance, angle or binary matrix.

 

N = Number

When Type = Dist or Type = Angle or Type = Binary, specifies the size of the square output matrix (n × n).

 

The following options apply only when the data is being folded into a distance or angle matrix.

 

Shape = Full | Lower | Upper

This parameter specifies whether to fold 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 to-be-folded column.