Accent as a character in a string

8 visualizaciones (últimos 30 días)
Bo
Bo el 9 de En. de 2012
I'm am in a situation where I need to use accent as a character in a string, but MATLAB interpret ' as the beginning/ending of a string.
Is there a way to work around this problem?

Respuestas (1)

Walter Roberson
Walter Roberson el 9 de En. de 2012
Example:
string = 'Don''t forget to double the apostrophe!'

Categorías

Más información sobre Characters and Strings en Help Center 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