Table Of Contents

strtoken

Version:
    Last Modified: March 15, 2017

    Determines the first delimited token in a string. c = strtoken(a) determines the first token that is delimited by white space. c = strtoken(a, b) determines the first token that is delimited by another string.

    Syntax

    c = strtoken(a)
    c = strtoken(a, b)
    [c, d] = strtoken(a)
    [c, d] = strtoken(a, b)
    Legacy name: strtok

    Inputs

    a

    String in which you want to find the first delimited token.

    b

    String that delimits the token you want to find.

    Outputs

    c

    First delimited token. c is a string.

    d

    Part of a, including the delimiter, that follows c.

    A = 'this is a test for strtoken'
    B = 'is'
    [C, D] = strtoken(A, B)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics