How to write string delimiter in a string

Hello The question is very simple, but I can't find the answer on the web. I would like to write a string with ' as content : A = ''';
How can I do that ? (I've already tried with \, /, ...).

2 个评论

yes, but here string = '
I'm trying to do : A = ' ' ' ;

请先登录,再进行评论。

 采纳的回答

Matt Fig
Matt Fig 2012-10-13
编辑:Matt Fig 2012-10-13
A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by