matlab ms word automation

h = actxserver(‘Word.Application’);

doc = h.Documents.Add();

doc.SaveAs(‘C:\hello.doc’);

h.Quit;

Advertisements