how to compare a string variable with a string?
6 views (last 30 days)
Show older comments
Hi How to compare string variable with a string?
0 Comments
Accepted Answer
More Answers (1)
SRI
on 18 Jun 2014
for example
inputData = 'Example';
outputData = strcmp(inputData,'Example');
If outputData = 1 means both the data are equal if 0 means it is not equal
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!