필터 지우기
필터 지우기

How to convert a csv file with numbers and text that numbers are separated by commas to a new csv file with dots instead

조회 수: 11 (최근 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");

채택된 답변

Oskar Kilgus
Oskar Kilgus 2023년 5월 17일
https://exceltable.com/en/formatting/change-comma-to-decimal-point

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by