replace comma by dot

213 visualizaciones (últimos 30 días)
shaz
shaz el 20 de Oct. de 2012
Comentada: Abdou Suso el 29 de Abr. de 2021
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 comentarios
Taiwo Bamigboye
Taiwo Bamigboye el 4 de Abr. de 2020
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 el 10 de Sept. de 2020
Muy buena e importante la intervención con respecto a los signos de puntuación es importante tenerle respeto a la escritura..

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 20 de Oct. de 2012
Data = fileread(FileName);
Data = strrep(Data, ',', '.');
FID = fopen(NewFileName, 'w');
fwrite(FID, Data, 'char');
fclose(FID);
  7 comentarios
Jan
Jan el 27 de Nov. de 2012
Editada: Jan el 27 de Nov. de 2012
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 el 29 de Abr. de 2021
It worked perfectly for me. Thanks for the bost

Iniciar sesión para comentar.

Más respuestas (1)

Carlox Velez
Carlox Velez el 1 de Abr. de 2016
It work super well and is a very fast solution Thanks for the answer Carlos

Categorías

Más información sobre Search Path en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by