how to compare special characters in string
2 次查看(过去 30 天)
显示 更早的评论
I have a strings
string='$(0)parameter'
I want to find if '$' is present in the string or not. Can any one tell me how to do that? Using which string functions I can achieve that?
2 个评论
Image Analyst
2014-7-10
Why is $ special ? It's a normal printable character like 3 or "A" or anything like that so you can use strfind().
采纳的回答
更多回答(0 个)
另请参阅
类别
在 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!