フィルターのクリア

How to use special character ' in a string?

61 ビュー (過去 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 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