MATLAB: How to publish code as a Word document on a Mac

docmacofficeoutput file formatpublish

I have Mac Office 2011 and R2012b, yet I haven't been able to publish .m code as a word document.
publish('my_fun.m','doc')
results in the following error:
"Error using mxdom2word (line 9) Publishing to Microsoft Word is only supported on the PC."
Really? This basic operation isn't supported? Is there a work-around?

Best Answer

Likely the communications with MS Word is handled via ActiveX, which is not present in OS-X.