read spreadsheet, delete some variables, and save the spreadsheet
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Ameer Hamza
2020-6-11
编辑:Ameer Hamza
2020-6-11
Something like this
t = readtable('test.csv');
t.number_of_deadlines = [];
writetable(t, 'test2.csv')
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!