Accent as a character in a string

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?

Antworten (1)

Walter Roberson
Walter Roberson am 9 Jan. 2012

3 Stimmen

Example:
string = 'Don''t forget to double the apostrophe!'

Kategorien

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

Gefragt:

Bo
am 9 Jan. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by