Change Precision of numbers when saving in csvwrite
이전 댓글 표시
I want to save some data that has one data line which is quite long (e.g.: Data = [12345678, -3.53, 1.52, -0.23; 12345679, -1.43, 6.12, 8.12; 12345680, -0.01, -5.12, -6.13; ...]). I really need the precision of the last digit, but when I use csvwrite the number is cut to 12,345,700. after some searching I found following solution:
csvwrite(FileName, Data, 'precision', '%i')
and it worked at first, but for some reason it stoped working now, which is very confusing to me.
Every time it just gives me an:
Error using csvwrite (line 47)
Invalid attribute tag: ,.
Is there maybe another way I can do it?
댓글 수: 4
Jan
2018년 3월 25일
Which Matlab version are you using? The csvwrite of Matlab 2016b does not have 47 lines of code. Please post, what you get as reply to:
which csvwrite -all
Walter Roberson
2018년 3월 25일
The R2018a version has 49 lines, with line 47 being a throw() of an exception being generated by dlmwrite()
Katy Weihrich
2018년 3월 26일
Katy Weihrich
2018년 3월 26일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Call Web Services from MATLAB Using HTTP에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!