View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.2 | 5 ratings Rate this file 25 Downloads (last 30 days) File Size: 3.13 KB File ID: #4643 Version: 1.0




17 Mar 2004 (Updated )

Creating table in Microsoft Word Document using titles and a matrix.

| Watch this File

File Information


table2word : creates a table in Microsoft Word using titles and a matrix. Specifying file name and tabel style is optional.
titles: Column titles (cell array).
m: matrix of numbers.
filename: Name of excel file.
style: Table Style (from a list listed in file help).
table_title: Title of Table to be displayed on top of table.


titles = {'1st','2nd','3rd','4th','5th','6th','7th','8th','9th','10th'};
m = magic(10);
table2word(titles,m,'Table Professional');
table2word(titles,m,'Table List 1','table.doc');
table2word(titles,m,'Table List 1','table.doc','My Table Title');
See also MSOPEN


Xlswrite inspired this file.

MATLAB release MATLAB 6.5 (R13)
Other requirements Microsoft Word Microsoft Excel
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
09 Oct 2015 ARDV DVAR

it's ot working with me
matlab 2014b

Comment only
03 Apr 2014 cabrego

Great tool, is it possible to label the rows and the columns?

10 Jul 2012 Murat

it seems this only works in windows systems.

Comment only
16 Sep 2008 Anup Khekare

Works perfect for me...I wanted simple tables though....Must look through every table style...

But excellent work...takes care of all the book keeping for me....

thanks again...keep up the good work...

15 Jul 2004 gabriele flauti

there is an ERROR in running this script with Matlab R12.
what is:
Excel = COM.Excel.Application;
my matlab doesn't recognze this...

23 Jun 2004 Jeff Lorie

there is an ERROR in running this script.
what is:
Excel = COM.Excel.Application;
my matlab doesn't recognze this...

Comment only
23 Jun 2004 gabriele flauti

22 Mar 2004 Raju Dutta

Sir can you give me the m-file of simultanious three nonlinear ODE.It is very much needed to me right now.

23 Mar 2004

Now appending tables to an exisiting document

07 Apr 2004

Appends table to End of Document + table title option added

Contact us