Owning Class: linalgebra
Requires: MathScript RT Module
d = reshapemx(a, b, c)
Legacy Name: reshape
Changes the dimensions of an input matrix.
| Name | Description |
|---|---|
| a | Specifies a vector or matrix of any data type. The number of elements in a must equal b*c. |
| b | Specifies the number of rows in d. b is a positive integer. |
| c | Specifies the number of columns in d. c is a positive integer. |
| Name | Description |
|---|---|
| d | Returns a b-by-c matrix. The elements in d are the elements of a in column order. |
A = [1, 2, 3; 4, 5, 6]
D = reshapemx(A, 3, 2)