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 commentaires

Azzi Abdelmalek
Azzi Abdelmalek le 13 Oct 2012
'string'
Collet Bastien
Collet Bastien le 13 Oct 2012
Modifié(e) : Collet Bastien le 13 Oct 2012
yes, but here string = '
I'm trying to do : A = ' ' ' ;

Connectez-vous pour commenter.

 Réponse acceptée

Matt Fig
Matt Fig le 13 Oct 2012
Modifié(e) : Matt Fig le 13 Oct 2012
A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by