replace comma by dot

조회 수: 220 (최근 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에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by