Table Of Contents

strjustify

Version:
    Last Modified: March 15, 2017

    Justifies strings.

    Syntax

    c = strjustify(a, b)
    Legacy name: strjust

    Inputs

    a

    String or character matrix.

    b

    Direction of alignment. b is a string that accepts the following values.

    Name Description
    'center'

    Aligns strings in the center.

    'left'

    Aligns strings to the left.

    'right'

    Aligns strings to the right.

    Outputs

    c

    a with the alignment you specify.

    A = ['12345     '; '     abcde']
    C = strjustify(A, 'center')

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics