필터 지우기
필터 지우기

How to use special character ' in a string?

조회 수: 55 (최근 30일)
Matlab Help Seeker
Matlab Help Seeker 2011년 6월 24일
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.

채택된 답변

Walter Roberson
Walter Roberson 2011년 6월 24일
case ''''
or
case char(39)
  댓글 수: 2
Matlab Help Seeker
Matlab Help Seeker 2011년 6월 24일
Thank you.
Jan
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 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