delete data of csv file
이전 댓글 표시
i have created a code such that data is appended to csv file every time the loop runs
but when i run the program again the new data is added with the old one
but i want to clear out the data in then csvfile before hand
what command do i use
delete('xyz.csv') deletes the whole file
댓글 수: 4
Merve Buyukbas
2021년 3월 24일
SINDU GOKULAPATI
2021년 3월 24일
Merve Buyukbas
2021년 3월 24일
But you shouldn't count on the main directory and instead use full paths everywhere in your script. This way the data can be located anywhere independently on where the code is.

SINDU GOKULAPATI
2021년 3월 24일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!