This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

upper

Convert documents to uppercase

Syntax

newDocuments = upper(documents)

Description

example

newDocuments = upper(documents) converts each lowercase character in the input documents to the corresponding uppercase character, and leaves all other characters unchanged.

Examples

collapse all

Convert all lowercase characters in an array of documents to uppercase.

documents = tokenizedDocument([
    "An Example of a Short Sentence" 
    "A Second Short Sentence"])
documents = 
  2x1 tokenizedDocument:

    6 tokens: An Example of a Short Sentence
    4 tokens: A Second Short Sentence

newDocuments = upper(documents)
newDocuments = 
  2x1 tokenizedDocument:

    6 tokens: AN EXAMPLE OF A SHORT SENTENCE
    4 tokens: A SECOND SHORT SENTENCE

Input Arguments

collapse all

Input documents, specified as a tokenizedDocument array.

Output Arguments

collapse all

Output documents, returned as a tokenizedDocument array.

Introduced in R2017b