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 日

0 投票

A = ''''
Or:
S = 'This is how you write a '' in MATLAB'

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File 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