dlmwrite problem within loop
이전 댓글 표시
i want to write matrix that result from loop in a txt file comma delimited i write the following command:
dlmwrite(['Test_data_Proposed', num2str(flag),'.txt'] , all_measured,'delimiter',',');
as flag is the counter within loop, all_measured is the matrix the error that all txt files have the same length although they don't. dlmwrite fixes the txt file length to 795 while all_measured values could exceed 1000 or less. How Could i fix this issue?
댓글 수: 6
Walter Roberson
2017년 12월 19일
What is class(all_measured) and size(all_measured) ?
Rana Sobhy
2017년 12월 19일
편집: Walter Roberson
2017년 12월 19일
Rana Sobhy
2017년 12월 19일
Walter Roberson
2017년 12월 19일
편집: Walter Roberson
2017년 12월 19일
The only time I have ever seen file writes returning a fixed file size was when I was using up the very last of my disk space.
Could you attach a .mat for one that you are having difficulty with?
Walter Roberson
2017년 12월 19일
dlmwrite() is intended to overwrite the existing content unless you use the -append flag .
Rana Sobhy
2017년 12월 19일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!