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.
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!