strcmp
描述
比较字符串 tf
= strcmp(str1
,str2
)str1
和 str2
。此运算符在这两个字符串完全相同时返回 1
(true
),否则返回 0
(false
)。strcmp
区分大小写。在 Requirements Table 模块中使用此运算符。
示例
输入参数
版本历史记录
在 R2022b 中推出
比较字符串 tf
= strcmp(str1
,str2
)str1
和 str2
。此运算符在这两个字符串完全相同时返回 1
(true
),否则返回 0
(false
)。strcmp
区分大小写。在 Requirements Table 模块中使用此运算符。
在 R2022b 中推出