Table Of Contents

str_to_num

Version:
    Last Modified: March 15, 2017

    Converts strings into a matrix of numbers.

    Syntax

    c = str_to_num(a)
    [c, d] = str_to_num(a)
    Legacy name: str2num

    Inputs

    a

    String or character matrix.

    Outputs

    d

    Indicates whether the conversion was successful. If d is 1, the conversion was successful. If d is 0, the conversion was not successful. d is a logical.

    c

    Numeric matrix equivalent to a.

    A = ['12 13'; '14 15']
    C = str_to_num(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics