How to publish code as a Word document on a Mac?
古いコメントを表示
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?
採用された回答
その他の回答 (2 件)
Matthew Simoneau
2012 年 11 月 29 日
0 投票
A workaround is to publish to HTML, open the HTML up in Word, and then save as Word.
3 件のコメント
Ward
2012 年 11 月 29 日
Terrance Nearey
2013 年 2 月 9 日
This has other drawbacks. For example, Line breaks appear not to be preserved. Seems like a bug in Word 2011.
John Ondov
2016 年 2 月 18 日
Great idea! May not be perfect,but better than trying to convert pdf to word - at least as far as I know!
ZHONGQIAN SHANGGUAN
2020 年 6 月 15 日
When I used the code to publish my file, i just got the following error info:
Publishing to Microsoft Word is only supported on the PC.
カテゴリ
ヘルプ センター および File Exchange で ActiveX についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!