Module: Editor
Version: 5.1.4 +
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 1 | Column 2 | Column 3 |
2 |
6 |
10 |
3 |
7 |
11 |
4 |
8 |
12 |
5 |
9 |
13 |
Shape1: 6
Shape2: 2
Result
Output:
Column 1 | Column 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
- Transpose: The formula 'Transpose' reverses the order of the dimensions of matrix.
Feedback
If you have any questions about this subject or if you want to provide us feedback please send us an e-mail.