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

4 ビュー (過去 30 日間)
Vitaliy
Vitaliy 2013 年 2 月 4 日
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 日
csvwrite doesn't have an append option, but dlmwrite does:
dlmwrite('file.csv',str,'-append','delimiter',',')

カテゴリ

Help Center および File ExchangeVariables についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by