필터 지우기
필터 지우기

How do I append data to an existing csv file using dlmwrite?

조회 수: 7 (최근 30일)
Lauren
Lauren 2015년 6월 5일
편집: Stephen23 2015년 6월 5일
Hello! I have a csv that contains historical data. I want to append new data to that file each day so the file stays up to date. I have tried using dlmwrite to do this, but I keep getting the error that I have too many output arguements. Below is my code. Any help would be greatly appreciated!
sp_final = dlmwrite('spx_historical.csv',sp_new,'-append')

답변 (1개)

Stephen23
Stephen23 2015년 6월 5일
편집: Stephen23 2015년 6월 5일
According to the dlmwrite documentation, the function does not have any outputs. So instead of calling this:
sp_final = dlmwrite('spx_historical.csv',sp_new,'-append')
You should call this:
dlmwrite('spx_historical.csv',sp_new,'-append')

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by