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

6 ビュー (過去 30 日間)
Moe
Moe 2015 年 6 月 29 日
回答済み: Azzi Abdelmalek 2015 年 6 月 29 日
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 Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by