How to export a figure into MS Word?
82 ビュー (過去 30 日間)
古いコメントを表示
If I have 8 figures opened in Matlab. How can I export these figures into an MS Word document?
2 件のコメント
回答 (2 件)
Image Analyst
2022 年 7 月 28 日
See attached demo. Works with Windows only.
1 件のコメント
Alex Morgan
2022 年 7 月 29 日
編集済み: Alex Morgan
2022 年 7 月 29 日
Works great for pasting into word, thanks.
Unfortunately I am still getting low quality images from imread compared to manually pasting into word, is there any way around this? Am using .png format, maybe a different one is better?
EDIT: Used the 2nd paste option (the Word.Selection.InlineShapes.AddPicture() method) and that fixed my image quality, thanks again
Ameer Hamza
2020 年 10 月 16 日
The easiest way is to create a live script, create figures inside it, and export it as a word document from the save menu. However, this approach gives less control over how the figures will appear in the word document.
One of the proper approaches is to use MATLAB report generator and add images to the MS word document. Following links shows some example,
Another approach might be to use the ActiveX server, but it will only work on MS Windows: https://www.mathworks.com/matlabcentral/answers/94937-how-can-i-automatically-export-an-image-to-a-microsoft-word-file-without-using-the-publish-function
3 件のコメント
Ameer Hamza
2020 年 10 月 16 日
I agree; this is a bit more complicated as compared to writing to excel file. I guess the live script approach is a bit easy, but I agree, exporting to images and pasting them is word file seems to be a good approach.
Alex Morgan
2022 年 7 月 28 日
Unfortunately it seems there is an issue with exporting to live scripts. Could try exporting to a LaTex file. Some links on both of these below
参考
カテゴリ
Help Center および File Exchange で Printing and Saving についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!