Exporting Data from MATLAB to MS word.

7 ビュー (過去 30 日間)
Tahira
Tahira 2011 年 5 月 10 日
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.

回答 (2 件)

Oleg Komarov
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
Or another FEX submission: save2word
The alternative is to play with actxserver
  2 件のコメント
Tahira
Tahira 2012 年 2 月 14 日
Thanx for ur suggestion. I have applied save2word and actxserver. both are useful to write data in MS word. my requirement is writing data to predefined table in a MSword file. I dont know how to address the table's cels????? can u help me please???
Oleg Komarov
Oleg Komarov 2012 年 2 月 14 日
Not my field of expertise.

サインインしてコメントする。


Thijs
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.

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by