Unwrap table made of doubles
Show older comments
I have created a merged table that now looks like this.

Is there anyway to unwrap it, in order to export it to a excel file to treat the data?
Thank you
Answers (1)
Hassaan
on 15 Jan 2024
writetable(yourTableName, 'output.xlsx');
Replace yourTableName with the variable name of your table. The file output.xlsx will be saved in your current MATLAB working directory, or you can specify a full path to save it in a different location.
If your table contains nested tables or other complex types, you may need to flatten the table first. This can involve converting cell arrays to strings or simplifying nested tables by extracting the inner tables into separate variables.
If you need to perform some treatment on the data before exporting, such as removing certain rows, changing data types, or handling missing data, you should do that with MATLAB functions before exporting.
------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Feel free to contact me.
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!