How to export a figure into MS Word?

조회 수: 81 (최근 30일)
Sadiq Akbar
Sadiq Akbar 2020년 10월 15일
편집: Alex Morgan 2022년 7월 29일
If I have 8 figures opened in Matlab. How can I export these figures into an MS Word document?
  댓글 수: 2
KSSV
KSSV 2020년 10월 15일
Save them as .jpeg, or .png ang export to word.
Read Saveas.
Sadiq Akbar
Sadiq Akbar 2020년 10월 16일
Thank you very much KSSV for your prompt response. Yes, I usually do like that. But can we export that by a matlab program just like we can export data to an excel file using xlswrite() command?

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2022년 7월 28일
See attached demo. Works with Windows only.
  댓글 수: 1
Alex Morgan
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
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,
  댓글 수: 3
Ameer Hamza
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
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 CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by