Exporting Data from MATLAB to MS word.
22 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(2 个)
Oleg Komarov
2011-5-10
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
2012-2-14
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!