How use csvwrite to write with a new blank line each time

I use csvwrite('file.csv',str,n,0) for output, but each time old data before n line is deleted. How to write csv without deleting old lines?

回答 (1 件)

Matt Tearle
Matt Tearle 2013 年 2 月 4 日

0 投票

csvwrite doesn't have an append option, but dlmwrite does:
dlmwrite('file.csv',str,'-append','delimiter',',')

カテゴリ

ヘルプ センター および File ExchangeFiles and Folders についてさらに検索

製品

質問済み:

2013 年 2 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by