how to compare a string variable with a string?
6 次查看(过去 30 天)
显示 更早的评论
Hi How to compare string variable with a string?
0 个评论
采纳的回答
更多回答(1 个)
SRI
2014-6-18
for example
inputData = 'Example';
outputData = strcmp(inputData,'Example');
If outputData = 1 means both the data are equal if 0 means it is not equal
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!