how to create string includes '
显示 更早的评论
i have string ['_ ,,,77 - -'''''"''"i''-_G8" ']
but it is illegal how to create it
采纳的回答
更多回答(2 个)
michael scheinfeild
2015-4-30
0 个投票
1 个评论
' is used in Matlab to indicate the start and end of a string, but the ' are not part of the string. To get the ' as part of the string, you have to type them twice (enclosed by ' to denote a Matlab string):
b='''abc"'''
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!