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 Kommentare

Azzi Abdelmalek
Azzi Abdelmalek am 13 Okt. 2012
'string'
Collet Bastien
Collet Bastien am 13 Okt. 2012
Bearbeitet: Collet Bastien am 13 Okt. 2012
yes, but here string = '
I'm trying to do : A = ' ' ' ;

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Matt Fig
Matt Fig am 13 Okt. 2012
Bearbeitet: Matt Fig am 13 Okt. 2012

0 Stimmen

A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by