Compare str to a missing string. The comparison is always 0 (false), even when you compare a
missing string to another missing string.
str == string(missing)
ans = 1x3 logical array
0
0
0
To find missing strings, use the ismissing function. Do not use the == operator.
See Also
string | strings | strlength | ismissing | contains | startsWith | endsWith | erase |
extractBetween | extractBefore | extractAfter | insertAfter | insertBefore | replace |
replaceBetween | eraseBetween | eq | all | any
Related Examples
•
“Create String Arrays” on page 6-5
•
“Analyze Text Data with String Arrays” on page 6-15
•
“Search and Replace Text” on page 6-37
•
“Compare Text” on page 6-32
Test for Empty Strings and Missing Values
6-23
Précédent

- 205/1450

Suivant