Code covered by the BSD License  

Highlights from
table2word

4.33333

4.3 | 4 ratings Rate this file 31 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

The author wishes to acknowledge the following in the creation of this submission:
xlswrite

MATLAB release MATLAB 6.5 (R13)
Other requirements Microsoft Word Microsoft Excel
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
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 Jun 2004 gabriele flauti  
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...

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

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

Please login to add a comment or rating.
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.

Tag Activity for this File
Tag Applied By Date/Time
data import Fahad Al Mahmood 22 Oct 2008 07:16:41
data export Fahad Al Mahmood 22 Oct 2008 07:16:41
word doc Fahad Al Mahmood 22 Oct 2008 07:16:41
miscrosoft Fahad Al Mahmood 22 Oct 2008 07:16:41
utilities Fahad Al Mahmood 22 Oct 2008 07:16:41
table Fahad Al Mahmood 22 Oct 2008 07:16:41
data export jaco jaco 15 Jun 2010 03:01:12
word doc gaia buratti 30 Jun 2011 09:12:24
table ivan 29 Nov 2011 06:54:16

Contact us at files@mathworks.com