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 Comments

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

Community Treasure Hunt

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

Start Hunting!