copy from workspace to csv file without loss of significant figures
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to copy an array to excell using the csvwite function. It works very good and fast, BUT I am losing a lot of significant figures. I only keep 5 of them. This means a significant loss of data for my solution. I tried ctrl+C but matlab fails (stops working, have to restart matlab) It is a rather big array of 30.000+ values (double) Is there a way to copy it to a file without losing the data?
0 个评论
采纳的回答
Mischa Kim
2014-3-20
编辑:Mischa Kim
2014-3-20
Dries, how about using dlmwrite?
data = rand(3000,10);
dlmwrite('test.csv',data,'precision',15);
更多回答(1 个)
Dries billiet
2014-3-20
1 个评论
Mischa Kim
2014-3-20
When you say words, do you mean strings (and not doubles)? What happens when you execute the code from my answer?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!