Here's an example code that creates a cell array of tables with multiple sheets in an Excel file:
main.m535 chars18 lines
The above code creates two tables as MATLAB tables and stores them in a cell array. Then, writetable()
function is used to write each table to a separate sheet in an Excel file. The loops are used to write each table to the Excel file. You can adjust the loop based on how many tables you want to store in the cell array.
gistlibby LogSnag