フィルターのクリア

Exporting a cell array whose dots were replaced by commas, results in added quotation marks

4 ビュー (過去 30 日間)
I have strings in a cell array, I would like to replace dots with commas and then export it in a text file.
The following code
str={'This. is a test'}
writecell(str','test')
generates a txt file containing
This. is a test
while the following
str={'This. is a test'}
str=strrep(str,'.',',')
writecell(str','test')
generates a txt file containing
"This, is a test"
why are quotation marks " added? And how to remove them?

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 24 日
編集済み: Ameer Hamza 2020 年 4 月 24 日
Change to this line
writecell(str','test', 'QuoteStrings', false)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Code Analysis についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by