How to write to a text file without overwriting existing file content in matlab

조회 수: 7 (최근 30일)
Matrix a in each run will be created new values and I want to save output values in each run to the same file without overwriting existing file.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 29일
a=rand(4)
b=[1 2 3;4 5 6]
dlmwrite('file.txt',a)
dlmwrite('file.txt',b,'-append')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by