adding multiples xlsx sheets in a workbook
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hello!
After processing my data with Matlab, I have 5 several .xlsx files, each one with 1 sheet.
Now, I want a xlsx workbook with these 5 sheets, conserving the same sheet name for each one.
I've tried with the code attached below, but I can't keep the sheet names of each single file into the excel worbook.
Can you help me?
Thank you very much!
Attached you can find the .xlsx files.
outfile = 'C:\Users\alberto\MATLAB_TRABAJO\prueba matlab\test.xlsx';
for k=1:length(archives)
writetable(Table,outfile,'Sheet',k,'Range','A1','WriteVariableNames',true);
end
%d=dir('*.xlsx');
%for i=1:numel(d)
%xlsheets(extractBetween(d(i).name,'16_','.'),d(i).name);
%end
2 comentarios
dpb
el 6 de Abr. de 2021
xlsheets(extractBetween(d(i).name,'16_','.'),d(i).name);
what is xlsheets in the above code and explain more clearly what you're trying to accomplish.
You wrote a file with sheets 1 thru 5 that have default name for each by addressing them as numeric.
Respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!