- Read the data from all the spreadsheets using readtable function in MATLAB and specifying the 'Sheet' name value pair. You can specify all the sheets from which you want to read the data.
- You can create a new table from the data read in the first step. For example,
- After the table is created, you can use sortrows function to sort the rows and the rows with same timestamp will occur in groups.
- This way you can create a table and then finally you can create an excel sheet using the writetable function.