read spreadsheet, delete some variables, and save the spreadsheet
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
alpedhuez
am 11 Jun. 2020
Kommentiert: alpedhuez
am 11 Jun. 2020
I have a spreadsheet 'test.csv' with the columns
date temperature number_of_deadlines
I read this spreadsheet with readtable, then I want to delete the column of 'number_of_deadlines" and then save the spreadsheet 'test2.csv' with
date temperature
Please advise.
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 11 Jun. 2020
Bearbeitet: Ameer Hamza
am 11 Jun. 2020
Something like this
t = readtable('test.csv');
t.number_of_deadlines = [];
writetable(t, 'test2.csv')
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!