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

Jan
Jan 2012년 11월 27일
@shaz: Please care about your own questions. Your rate of accepting answers is very low and I find a lot of questions for clarifications, which you did not answer. This demotivates others to help you.
Walter Roberson
Walter Roberson 2012년 11월 27일
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
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일

15 개 추천

Data = fileread(FileName);
Data = strrep(Data, ',', '.');
FID = fopen(NewFileName, 'w');
fwrite(FID, Data, 'char');
fclose(FID);

댓글 수: 7

Walter Roberson
Walter Roberson 2012년 11월 23일
Please do not keep asking the same question. This is being addressed in http://www.mathworks.co.uk/matlabcentral/answers/54565-proper-orientation-writing-to-text-file
Jan
Jan 2012년 11월 27일
@Walter: The question of the linked thread was: "problem is not able to adjust whitespaces", but this one concerns commas and dots. But it seems like the other thread has been perforated already, I guess somebody has deleted some comments.
Walter Roberson
Walter Roberson 2012년 11월 27일
Yup, looks like someone deleted comments here.
Jan
Jan 2012년 11월 27일
I've looked in the activity log, but did not find the one, who has deleted the comments.
@shaz: did you delete your comments? If so, please stop doing this, because it makes the complete thread confusing and there reduces the quality of the forum.
Walter Roberson
Walter Roberson 2012년 11월 27일
Deletions do not appear in the activity log. The activity log is created by actively querying the database for the records that it still has. The metainfo for the entries is deleted along with the entries being deleted.
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일

0 개 추천

It work super well and is a very fast solution Thanks for the answer Carlos

카테고리

질문:

2012년 10월 20일

댓글:

2021년 4월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by