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 CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by