Accent as a character in a string

8 ビュー (過去 30 日間)
Bo
Bo 2012 年 1 月 9 日
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?

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 1 月 9 日
Example:
string = 'Don''t forget to double the apostrophe!'

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by