Effacer les filtres
Effacer les filtres

How can I delete a certain cell area in an Excel table using MATLAB 7.8 (R2009a)?

21 vues (au cours des 30 derniers jours)
I would like to delete the existing values in a certain cell area of an Excel table using MATLAB.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 27 Juin 2009
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');

Plus de réponses (0)

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2009a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by