Compare strings (case sensitive)
compares the strings
tf = strcmp(
true) if the strings are
identical, and returns
strcmp is case sensitive. Use this operator in the Requirements Table block.
N Characters of Strings
In a Requirements Table block, create a requirement that
checks if the strings
y = strcmp("abc","abc")
You can also compare and sort string with relational operators. Use
== to determine two strings are equal.
"abc" == "abc"
~= to determine if two strings are not
"abc" ~= "abcd"
Introduced in R2022b