MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

  • Character vector — 1 -by-n array of characters, of data type char.

  • Character array — m-by-n array of characters, of data type char.

  • Cell array of character vectors — Cell array in which each cell contains a character
    vector.

  • String or string scalar — 1 -by- 1 string array. A string scalar can contain a 1 -by-n
    sequence of characters, but is itself one object. Use the terms "string scalar" and
    "character vector" alongside each other when to be precise about size and data type.
    Otherwise, you can use the term "string" in descriptions.

  • String vector — 1 -by-n or n-by- 1 string array. If only one size is possible, then use it in
    your description. For example, use " 1 -by-n string array" to describe an array of that
    size.

  • String array — m-by-n string array.

  • Empty string — String scalar that has no characters.

  • Empty string array — String array with at least one dimension whose size is 0.

  • Missing string — String scalar that is the missing value (displays as ).


See Also


cellstr | char | convertCharsToStrings | convertContainedStringsToChars |
convertStringsToChars | isStringScalar | iscellstr | ischar | isstring |
string | strings | strlength | validateattributes


More About



  • “Create String Arrays” on page 6-12

  • “Test for Empty Strings and Missing Values” on page 6-31

  • “Compare Text” on page 6-47

  • “Search and Replace Text” on page 6-54

  • “Frequently Asked Questions About String Arrays” on page 6-66


See Also
Free download pdf