Create string array with no characters
str = strings
returns a string with no characters. For more information
on string arrays, see string
.
Note: Starting in R2017a, you also can use double quotes. For
example, str = ""
creates a string scalar that contains no
characters.
str = strings(
returns an
n
)n
-by-n
string array. Each element is a
string with no characters.
str = strings(
returns a
sz1,...,szN
)sz1
-by-...-by-szN
string array, where
sz1,...,szN
indicate the size of each dimension. For example,
strings(2,3)
returns a 2-by-3 string array where each element
is ""
.