how to display or input the character '

8 ビュー (過去 30 日間)
angus wu
angus wu 2012 年 10 月 9 日
in string, the character ' is to indicate start or end of a stri. but how to display or input the character '
example, i want to set the string variable a so that it contains a single character ' only.
how?
if it is other character, it is ok like
a = 'my name' then content of a will be the string my name.
i just want a single character ' in a .
thanks
angus

採用された回答

Matt J
Matt J 2012 年 10 月 9 日
Example:
>> 'a''b'
ans =
a'b

その他の回答 (1 件)

Greg Heath
Greg Heath 2012 年 10 月 9 日
>> z = ' '' '
z =
'

カテゴリ

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