xlswrite to import data from cell array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mudasser Seraj
am 25 Mai 2018
Kommentiert: Mudasser Seraj
am 28 Mai 2018
Hello,
I have a matrix 'm' with 373 cell. each containting 2-d matrix of different size. I want to use 'xlswrite' to write the contents of each table on different sheets of the same file. Can someone please help me in this regard?
2 Kommentare
Walter Roberson
am 25 Mai 2018
Is there a particular reason you are not using writetable() to write those tables? You can pass 'Sheetname' to writetable()
Akzeptierte Antwort
Walter Roberson
am 25 Mai 2018
filename = 'MySpreadsheet.xls';
for sheet = 1 : length(m)
writetable(m{sheet}, filename, 'sheet', sheet)'
end
3 Kommentare
Walter Roberson
am 26 Mai 2018
The first thing I would try would be to add a pause(5) after the writetable() to give the previous action time to finish.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!