How to convert a csv file with numbers and text that numbers are separated by commas to a new csv file with dots instead
12 ビュー (過去 30 日間)
古いコメントを表示
hi everyone
I have a csv file that is contaning numbers and text and numbers are seperated by comma. I want to have new csv file that contain same text and numbers but instead of comma, numbers seperated by dot. I used these codes but it gives me error and it says i can't use strrep. Could you please help me with that. Thank you in advance
df2=readtable("export_1_hour_data.csv")
M=df2(1:end,2:3)
D=strrep(M, ',', '.')
writematrix(D,"Temp_Dot_Banana5.csv");
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1386499/image.png)
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Export についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!