• Futurama Formulas - Date and time
• Futurama Formulas - Math
• Futurama Formulas - Statistical
• Futurama Formulas - Text
• Futurama Formulas - Logical
• Futurama Formulas - Table
• Futurama Formulas - Document
• Futurama Formulas - Conversion
• Futurama Formulas - Matrix
• Creating custom formulas in Futurama

Module: Editor

Version: 5.1.4 +

Type: Long, Double, Date, Boolean or String

Category: Matrix

## Description

The formula 'Reshape' reshapes a matrix to specified shape. The formula 'Reshape' creates a new matrix with elements of the original matrix, but with other row and column sizes. Condition is that all the elements of the original matrix have to fit in the new size of the matrix.

## Parameters

Matrix:         the matrix you want to reshape.

Shape1:       shape1, shape 2 define the length of the dimension in the reshaped matrix

## Example

### Description

In the following example the formula 'Reshape' is used to reshape a matrix from one size to another.

### Values parameters

Matrix:

Column 1Column 2Column 3
2  6  10
3  7  11
4  8  12
5  9  13

Shape1: 6

Shape2: 2

### Result

Output:

Column 1Column 2
2  8
3  9
4  10
5  11
6  12
7  13

The result is a matrix with size 6x2, the original size was 4x3.

## Related Topics

TransposeThe formula 'Transpose' reverses the order of the dimensions of matrix.