replace comma by dot

243 次查看(过去 30 天)
shaz
shaz 2012-10-20
评论: Abdou Suso 2021-4-29
i have a csv file where comma is present in place of dot
this file needs to be imported to matlab & needs to replace comma by dot
  4 个评论
Taiwo Bamigboye
Taiwo Bamigboye 2020-4-4
Have tried so hard to learn MATLAB on my own but it seems not working for me. Please is there anyone that knows it very well and ready to teach me via zoom or team view, off course am ready to pay. All this online learning is not intuitive for me.
Sandy Ramírez
Sandy Ramírez 2020-9-10
Muy buena e importante la intervención con respecto a los signos de puntuación es importante tenerle respeto a la escritura..

请先登录,再进行评论。

采纳的回答

Jan
Jan 2012-10-20
Data = fileread(FileName);
Data = strrep(Data, ',', '.');
FID = fopen(NewFileName, 'w');
fwrite(FID, Data, 'char');
fclose(FID);
  7 个评论
Jan
Jan 2012-11-27
编辑:Jan 2012-11-27
In fact. What a pitty. It would be useful to know, if shaz has deleted his comments. Together with the fact, that too many of my questions for clarifications are not answered, it would help me to estimate how useful my activities in his threads are.
Abdou Suso
Abdou Suso 2021-4-29
It worked perfectly for me. Thanks for the bost

请先登录,再进行评论。

更多回答(1 个)

Carlox Velez
Carlox Velez 2016-4-1
It work super well and is a very fast solution Thanks for the answer Carlos

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by