How can I delete a certain cell area in an Excel table using MATLAB 7.8 (R2009a)?
21 次查看(过去 30 天)
显示 更早的评论
I would like to delete the existing values in a certain cell area of an Excel table using MATLAB.
采纳的回答
MathWorks Support Team
2009-6-27
When XLSWRITE is used to write to cells in a spreadsheet, by default it overwrites the existing data in the cells. Thus deleting the existing values in a certain cell area can also be accomplished by writing empty cells.
The following example shows how to use the XLSWRITE command to write an empty cell to a cell area in order to clear the existing values:
xlswrite('test.xls', cell(29, 1), 'Table1', 'A3:A31');
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!