Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
|
question on exporting data
Posted:
Jul 22, 2011 9:17 AM
|
|
Hello, I have a matrix that I want to export to a file with coma delimiter. This works good, the only thing left to do is to insert a coma at the beginning of each line in the file. What would be a good way to do it?
Thanks, Peter
M=ones(5,5) dlmwrite('test.txt', matrix, 'delimiter' , ',' ,'precision', 2, '-append')
|
|
|
|