save data in an existing xls file but in new sheet

4 vues (au cours des 30 derniers jours)
HD
HD le 2 Mai 2016
Commenté : HD le 4 Mai 2016
HI,
I would like to save (xlswrite) data in a excel file. If the files already exist, I would like to force saving the data in a new sheet that I don't really now its number.
Is this possible with matlab?
Thanks in advance!

Réponse acceptée

Jan
Jan le 2 Mai 2016
Use xlsinfo :
[status, sheets] = xlsinfo(filename);
newSheetNumber = numel(sheets) + 1;

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by