save data in an existing xls file but in new sheet

4 views (last 30 days)
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!

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!