save data in an existing xls file but in new sheet

1 Ansicht (letzte 30 Tage)
HD
HD am 2 Mai 2016
Kommentiert: HD am 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!

Akzeptierte Antwort

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

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by