copy from workspace to csv file without loss of significant figures

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?

 채택된 답변

Mischa Kim
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
Dries billiet 2014년 3월 20일

0 개 추천

But it only writes the first 3500 words... How is this possible?

댓글 수: 1

When you say words, do you mean strings (and not doubles)? What happens when you execute the code from my answer?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Data Type Identification에 대해 자세히 알아보기

태그

질문:

2014년 3월 20일

댓글:

2014년 3월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by