Code covered by the BSD License  

Highlights from
table2word

4.33333

4.3 | 4 ratings Rate this file 21 Downloads (last 30 days) File Size: 3.13 KB File ID: #4643

table2word

by Fahad Al Mahmood

 

17 Mar 2004 (Updated 21 Jul 2004)

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

| Watch this File

File Information
Description

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

Acknowledgements

Xlswrite inspired this file.

MATLAB release MATLAB 6.5 (R13)
Other requirements Microsoft Word Microsoft Excel
Tags for This File  
Everyone's Tags
data export(2), data import, miscrosoft, table(2), utilities, word doc(2)
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
10 Jul 2012 Murat

it seems this only works in windows systems.

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

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.

Updates
23 Mar 2004

Now appending tables to an exisiting document

07 Apr 2004

Appends table to End of Document + table title option added

21 Jul 2004

Replaced Structured Arrays COM commands with (invoke) & (set) commands.

Contact us