Table Of Contents

repeatmx

Version:
    Last Modified: March 15, 2017

    Creates an array of repeated copies of the input.

    Syntax

    d = repeatmx(a, b)
    d = repeatmx(a, b, c)
    d = repeatmx(a, b, c, ...)
    d = repeatmx(a, v)
    Legacy name: repmat

    Inputs

    a

    Input array whose elements get repeated. a is a scalar or an array of any dimension of any data type.

    b

    Number of times the rows of a are repeated in d. b is a positive integer.

    c

    Number of times the columns of a are repeated in d. c is a positive 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 non-negative integer values.

    Outputs

    d

    Block array of b by c by ....

    A = [1, 2, 3; 4, 5, 6]
    D = repeatmx(A, 3, 2)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics