Adding a new line to a .dat file from another simulation
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello guys , i use dlmwrite function in my code
dlmwrite ('DFC1.dat',[anambe(:,1), anambe(:,6)],'delimiter','\t','precision',7);
and lets say i am runiing the code for another simulation still anambe(:,1) is the same for that case as well, i wanna keep the first and second columns from the first simulation but then if i run the code second code i want to add another line , in which case anambe(:,6) is different, so i want to add that line as a third column to .dat file.
dlmwrite ('DFC1.dat',anambe(:,3),'delimiter','\t','precision',7,'-append');
i tried that line but it is not working, can anyone help me please?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!