WriteToWordFromMatl​ab

Automatically create MS Word documents from Matlab with figures, tables, headers and text.

You are now following this Submission

This m-file is a modification of the 'save2word'. It's an example of how to automatically create MS Word documents from MATLAB with figures, tables, headers and text.
The different basic functionalities to add text with different style and to add figures are broken into sub-functions that can be used in a simple way.

Cite As

Andreas Karlsson (2026). WriteToWordFromMatlab (https://ch.mathworks.com/matlabcentral/fileexchange/9112-writetowordfrommatlab), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: saveppt, save2word

Inspired: Matlab to MSWord function library, wordreport

Categories

Find more on MATLAB Report Generator in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0.0

Changed calls to color-method into colorIndex to support MS-Word 2013. Thanks Martin van de Ven!

1.0.0.0

Added BSD license upon request from Mathworks
Several users wishing more out of the simple script led to new functionality.
- Table with matlab data
- Insertion of symbols
- Table of Contents
- Pagenumbers
- Text in other colors

Also a new section with hints for the eager users.