8
I have a large CSV file (1GB) that I would like to remove commas from. The data are all positive integers. Methods I have tried include dlmwrite with a space as the delimiter, but the output is then output in decimal format. I have also tried to use the fprintf command, but then I lose the shape of the matrix (i.e. all data appear in one line or column).
Thus,
Is there a simple way to read in from a CSV (input.txt):
1, 2, 3, 4, 5
2, 3, 4, 5, 6
and then output to a text file (output.txt) in the form:
1 2 3 4 5
2 3 4 5 6