Accent as a character in a string
显示 更早的评论
I'm am in a situation where I need to use accent as a character in a string, but MATLAB interpret ' as the beginning/ending of a string.
Is there a way to work around this problem?
回答(1 个)
Walter Roberson
2012-1-9
Example:
string = 'Don''t forget to double the apostrophe!'
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!