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!