Combine multiple tables into one so that it can be write into one excel sheet
Show older comments
I have a Matlab function that generates multiple tables, each table is quite different from the others, whether in size or in variable names. Is that possible that I combine and shape these tables into one big table or matrix(whatever) as long as all the tables can be returned to one Excel sheet with one call?
Answers (1)
Peter Perkins
on 13 Sep 2018
Edited: Peter Perkins
on 13 Sep 2018
0 votes
You can combine the tables, but if you have different variables in each one you'd have to fill in large chunks with missing data.
Why not write to the spreadsheet using a range?
5 Comments
Ji Li
on 14 Sep 2018
Walter Roberson
on 14 Sep 2018
If the add-in is intended to return a numeric matrix, then you cannot leave anything blank.
If the add-in MATLAB code is permitted to use ActiveX to drive Excel, then you can use activexserver() on the MATLAB side and give the link commands that can write into arbitrary selection regions.
Ji Li
on 14 Sep 2018
Walter Roberson
on 14 Sep 2018
Sorry, I do not know how excel add-in work. I do not have Excel on windows to test with.
Ji Li
on 14 Sep 2018
Categories
Find more on Spreadsheets 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!