How to write uint32 to csv file in MATLAB?

409 views Asked by At

I have an array of uint32 integers in MATLAB. I want to export them to CSV file. When I use csvwrite() i get an exponent form..

b = uint32([1873569684     6411863   942650153  1666833080  3111076679])
csvwrite('tmpw.csv', b)

and the CSV result is:

1.8736e+09,6.4119e+06,9.4265e+08,1.6668e+09,3.1111e+09

instead of

1873569684,6411863,942650153,1666833080,3111076679

Any idea?

Thanks!

1

There are 1 answers

1
divanov On BEST ANSWER

csvwrite writes a maximum of five significant digits. If you need greater precision, use dlmwrite with a precision argument.