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?
Best Answer