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 个)

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

类别

帮助中心File Exchange 中查找有关 Files 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