delete data of csv file
Ältere Kommentare anzeigen
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 Kommentare
Merve Buyukbas
am 24 Mär. 2021
SINDU GOKULAPATI
am 24 Mär. 2021
Merve Buyukbas
am 24 Mär. 2021
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
am 24 Mär. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Variables finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!