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

9 次查看(过去 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