Table Of Contents

str_to_mx

Version:
    Last Modified: March 15, 2017

    Converts strings into a matrix of characters.

    Syntax

    c = str_to_mx(a, b, ...)
    Legacy name: str2mat

    Inputs

    a

    String.

    b

    String.

    ...

    Further text.

    Outputs

    c

    Character matrix equivalent to the input strings.

    Strings with blank Spaces

    MathScript pads strings with blank spaces, if necessary, to make all strings the same length. You can specify an unlimited number of input strings.

    A = '1.23E-4+34.333j'
    B = 'hello'
    C = str_to_mx(A, B)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics