How to write string delimiter in a string

1 view (last 30 days)
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 Comments
Collet Bastien
Collet Bastien on 13 Oct 2012
Edited: Collet Bastien on 13 Oct 2012
yes, but here string = '
I'm trying to do : A = ' ' ' ;

Sign in to comment.

Accepted Answer

Matt Fig
Matt Fig on 13 Oct 2012
Edited: Matt Fig on 13 Oct 2012
A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

More Answers (0)

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!