string compare of numbers and strings
2 次查看(过去 30 天)
显示 更早的评论
i have two variables(suppose a and b) which is an array of numbers as well as strings. I want to compare a and b, and my output should be a logical array of same size as a and b.
0 个评论
回答(1 个)
Kate
2015-10-28
Could you show us some sample data? Off the top of my head I think you need to use strcmp and/or ismember
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!