How to use special character ' in a string?
조회 수: 56 (최근 30일)
이전 댓글 표시
Hi,
I want to use the special character '. I want that if an input is equal to character ', then a bit stream gets transmitted.
case(''')
temp_sec_info='00101';
Now, you can't use three times '''. There must be a special operator to use the character ' in a string. How would it be possible?
Thank you.
댓글 수: 0
채택된 답변
Walter Roberson
2011년 6월 24일
case ''''
or
case char(39)
댓글 수: 2
Jan
2011년 6월 24일
CHAR(39) looks less confusing, especially inside posts in the forum and if you need more than one quote charcter.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!