How to read Ms word file in matlab?

i want to read Ms word file in matlab..please someone help me out...Thanks..

4 Comments

Do you want to read the content of the MS Word file and manipulate it in some way? Maybe write data back to the document? What is the use case for this? I know you have posted a similar question about reading PDFs too...
It depends on what you want to read. It is trivial to import a binary .doc file as long as you do not want do process the contents. Or importing a text from a .docx might be easy also, but what does "reading" mean in case of tables, mutli-column text and picture?
If the Word file contains only text, you could try using the textread or textscan function. Also check http://www.mathworks.in/help/matlab/import_export/supported-file-formats.html
I don't believe .doc is supported though I read something about Excel spreadsheets in there...
Thanks for comments. My main aim is to read a pdf file but due to failure i will convert pdf file to word by software and then will read word file..but i realize that i must have to read pdf file.So if any one have tried on and have some code kindly share it with me..or just give me a clue that how it can be possible..Thanks one again............i really need it..

Sign in to comment.

Answers (1)

per isakson
per isakson on 24 Aug 2014
Edited: per isakson on 24 Aug 2014
I assume you have Ms Word installed. If so
Start an ActiveX session with Word
wordX = actxserver('Word.Application');
and make an experiment

Tags

Asked:

on 24 Aug 2014

Commented:

on 25 Aug 2014

Community Treasure Hunt

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

Start Hunting!