How to write string delimiter in a string

6 Ansichten (letzte 30 Tage)
Collet Bastien
Collet Bastien am 13 Okt. 2012
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
A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help 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