Exporting Data from MATLAB to MS word.
Ältere Kommentare anzeigen
Hi All I want to write data from MATLAB to a word file is it possible? if yes then how?? plz. give me any example. thanks.
Antworten (2)
Oleg Komarov
am 10 Mai 2011
1 Stimme
Check this FEX submission: OfficeDoc - read/write/format MS Office docs (XLS/DOC/PPT) which is a demo version but may cover the functionality you're asking
Thijs
am 14 Feb. 2012
0 Stimmen
I can suggest a work around, but I'm only sure it works if you have msoffice 2007.
create the msword file, instead of inserting a table insert an object made from an excel file, and make sure the link to object option is flagged.
write the array you're interested in to the excel file, with xlswrite. next time the word document is opened the changes are reflected in the excel object. The downside is that formating the resulting table before hand is difficult.
Hope this helps.
Kategorien
Mehr zu Use COM Objects in MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!