save data in an existing xls file but in new sheet

4 visualizaciones (últimos 30 días)
HD
HD el 2 de Mayo de 2016
Comentada: HD el 4 de Mayo de 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!

Respuesta aceptada

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

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by