Main Content

string

Convert UTF-32 representation to string

    年代yntax

    Description

    example

    str= string(str32)converts the UTF-32 representationstr32to string.

    Examples

    collapse all

    Convert the string"Hello! "to its Unicode UTF-32 string representation using thetextanalytics.unicode.UTF32function.

    str ="Hello! "; str32 = textanalytics.unicode.UTF32(str)
    str32 = UTF32 with properties: Data: [72 101 108 108 111 33 32 128512]

    Convertstr32to string using thestringfunction.

    str = string(str32)
    str = "Hello! "

    Input Arguments

    collapse all

    UTF-32 string representation, specified as aUTF32array.

    Output Arguments

    collapse all

    年代tring, returned as a string array with the same size asstr32.

    Version History

    Introduced in R2021a