Table Of Contents

reverse_vector

Version:
    Last Modified: March 15, 2017

    Reverses the input array.

    Syntax

    b = reverse_vector(a)
    Legacy name: wrev

    Inputs

    a

    Array of any dimension. MathScript flattens the array a to the vector you want to reverse, if necessary.

    Outputs

    b

    Reversed vector. b is a vector of the same size as a.

    A = 1:10;
    B = reverse_vector(A)
    C = 'abcdefghijklmnopqrst';
    D = reverse_vector(C)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics