File Exchange

image thumbnail

table2word

version 1.0 (3.13 KB) by

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

17 Downloads

Updated

View License

table2word(titles,m)
table2word(titles,m,table_title)
table2word(titles,m,style)
table2word(titles,m,style,table_title)
table2word(titles,m,filename)
table2word(titles,m,filename,table_title)
table2word(titles,m,style,filename)
table2word(titles,m,style,filename,table_title)

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.

Examples:

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

See also MSOPEN

Comments and Ratings (8)

ARDV DVAR

it's ot working with me
matlab 2014b

cabrego

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

Murat

it seems this only works in windows systems.

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...

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...

Jeff Lorie

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

gabriele flauti

Raju Dutta

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

Updates

Appends table to End of Document + table title option added

Now appending tables to an exisiting document

MATLAB Release
MATLAB 6.5 (R13)
Acknowledgements

Inspired by: xlswrite

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

» Watch video