How to export a figure into MS Word?

93 views (last 30 days)
Sadiq Akbar
Sadiq Akbar on 15 Oct 2020
Edited: Alex Morgan on 29 Jul 2022
If I have 8 figures opened in Matlab. How can I export these figures into an MS Word document?
  2 Comments
Sadiq Akbar
Sadiq Akbar on 16 Oct 2020
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?

Sign in to comment.

Answers (2)

Image Analyst
Image Analyst on 28 Jul 2022
See attached demo. Works with Windows only.
  1 Comment
Alex Morgan
Alex Morgan on 29 Jul 2022
Edited: Alex Morgan on 29 Jul 2022
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

Sign in to comment.


Ameer Hamza
Ameer Hamza on 16 Oct 2020
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 Comments
Alex Morgan
Alex Morgan on 28 Jul 2022
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

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by