How to use special character ' in a string?
58 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to use the special character '. I want that if an input is equal to character ', then a bit stream gets transmitted.
case(''')
temp_sec_info='00101';
Now, you can't use three times '''. There must be a special operator to use the character ' in a string. How would it be possible?
Thank you.
0 个评论
采纳的回答
Walter Roberson
2011-6-24
case ''''
or
case char(39)
2 个评论
Jan
2011-6-24
CHAR(39) looks less confusing, especially inside posts in the forum and if you need more than one quote charcter.
更多回答(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!