WriteToWordFromMatl​ab

Automatically create MS Word documents from Matlab with figures, tables, headers and text.
18.1K Downloads
Updated 24 Oct 2016

View License

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 (2024). WriteToWordFromMatlab (https://www.mathworks.com/matlabcentral/fileexchange/9112-writetowordfrommatlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on MATLAB Report Generator in Help Center and MATLAB Answers
Acknowledgements

Inspired by: saveppt, save2word

Inspired: Matlab to MSWord function library, wordreport

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
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.