Changes the dimensions of an input.
d = reshapemx(a, b, c, ...)
d = reshapemx(a, v)Legacy name: reshape
Scalar or array of any dimension. The number of elements in a must be equal to the product of b*c*....
Number of rows in d. b is a non-negative integer.
Number of columns in d. c is a non-negative integer.
Further parameters for specifying the number of elements in higher dimensions. You can replace one parameter for any dimension with an empty array, for example, reshapemx([1,2,3,4,5,6], 2, ). The array then is a placeholder for an unspecified size. MathScript uses the array size and the reshape size to calculate the unspecified size automatically.
Vector with number of rows, columns, and further dimensions. v must contain positive integer values and at least two elements.
Array of any dimensions. The elements in d are the elements of a in column order.
A = [1, 2, 3; 4, 5, 6] D = reshapemx(A, 3, 2)
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported