How to write string delimiter in a string

4 ビュー (過去 30 日間)
Collet Bastien
Collet Bastien 2012 年 10 月 13 日
Hello The question is very simple, but I can't find the answer on the web. I would like to write a string with ' as content : A = ''';
How can I do that ? (I've already tried with \, /, ...).
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 13 日
'string'
Collet Bastien
Collet Bastien 2012 年 10 月 13 日
編集済み: Collet Bastien 2012 年 10 月 13 日
yes, but here string = '
I'm trying to do : A = ' ' ' ;

サインインしてコメントする。

採用された回答

Matt Fig
Matt Fig 2012 年 10 月 13 日
編集済み: Matt Fig 2012 年 10 月 13 日
A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

その他の回答 (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