5.0

5.0 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 17.51 KB File ID: #2928

Print data to HTML-code

by Stijn Helsen

 

10 Jan 2003 (Updated 27 Feb 2006)

Print data (structures, cells, arrays, ...) to HTML-code.

| Watch this File

File Information
Description

This function writes data in a structured way so that it can be viewed in a html-browser. It can also be imported by word, excel and other programs so that it can be used easily elsewhere.

To use it :
print2html(s,nrecurs,f)
s data (structure, cells, other MATLAB data)
nrecurs : recursive display of cell- and structure elements
f : file (filename or filehandle)

If (and only if) a filename is given a html-head (<html>....</head><body>) and html-end is added.

The main goal of this function is not writing full html-code, but html-code which can be imported in larger files.

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
01 Oct 2005 Yogesh Mehta

Thanks so much, it was extremely useful for me and saved me a ton of work.

23 Feb 2006 Ralph Smith

Looks good - v useful for printing out in full those complicated structure objects that are hard to review otherwise. Would be keen to see it combined with the web() command so that one can view a structure without necessarily saving the file to disk.

18 Jan 2010 Nicolas Cusseau

The way you use recursivity is very interesting and helped me a lot in algorithmic. Thanks!

Please login to add a comment or rating.
Updates
27 Feb 2006

Request from Ralph for direct link to matlab-web. (Wasn't possible in Matlab5.2, so I didn't do it, and I'm sometimes still using this version.)

Tag Activity for this File
Tag Applied By Date/Time
development environment Stijn Helsen 22 Oct 2008 06:55:56
print Stijn Helsen 22 Oct 2008 06:55:56
html Stijn Helsen 22 Oct 2008 06:55:56
export Stijn Helsen 22 Oct 2008 06:55:56
utilities Stijn Helsen 22 Oct 2008 06:55:56
data Stijn Helsen 22 Oct 2008 06:55:56
data import Cristina McIntire 07 Nov 2008 12:15:57
data export Cristina McIntire 07 Nov 2008 12:16:00

Contact us at files@mathworks.com