Table Of Contents

reshapemx

Version:
    Last Modified: January 9, 2017

    Changes the dimensions of an input.

    Syntax

    d = reshapemx(a, b, c, ...)
    d = reshapemx(a, v)
    Legacy name: reshape

    Inputs

    a

    Scalar or array of any dimension. The number of elements in a must be equal to the product of b*c*....

    b

    Number of rows in d. b is a non-negative integer.

    c

    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.

    v

    Vector with number of rows, columns, and further dimensions. v must contain positive integer values and at least two elements.

    Outputs

    d

    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


    Recently Viewed Topics