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 comentarios

Azzi Abdelmalek
Azzi Abdelmalek el 13 de Oct. de 2012
'string'
Collet Bastien
Collet Bastien el 13 de Oct. de 2012
Editada: Collet Bastien el 13 de Oct. de 2012
yes, but here string = '
I'm trying to do : A = ' ' ' ;

Iniciar sesión para comentar.

 Respuesta aceptada

Matt Fig
Matt Fig el 13 de Oct. de 2012
Editada: Matt Fig el 13 de Oct. de 2012
A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by