3.5

3.5 | 4 ratings Rate this file 29 downloads (last 30 days) File Size: 282.43 KB File ID: #14453

Printing Variables to HTML Tables in Published Code

by Ned Gulley

 

28 Mar 2007 (Updated 15 Jun 2009)

Code covered by BSD License  

This file lets you display variables as HTML tables in your published MATLAB files.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

Download Now | Watch this File

File Information
Description

One often-requested feature for Cell Mode publishing is to have a command that simply displays the output of a MATLABĀ® variable as a table. This file shows how to do that.

MATLAB release MATLAB 7.4 (R2007a)
Zip File Content  
HTML Files Printing Variables to HTML Tables in Published Code
Other Files html/htmlTableDemo.png,
html/htmlTableDemo_01.png,
html/htmlTableDemo_02.png,
htmlTableDemo.m,
license.txt,
makeHtmlTable.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
25 Jan 2008 kwadwo Dompreh

couldn't output the tables when used

06 Jan 2009 Johanne Hammervold

Hi!
This seems to be exactly what I need to solve a certain problem with my script. Is it any way to use this code on Matlab R2008b ?

Johanne

23 Feb 2009 Brian

This did what I was looking for. I needed to publish an HTML table in a web page. I modified it for my purposes so I could input a format string instead of a precision.

28 Aug 2009 Daniel Armyr

Awsome potential, but it eems to depend on a function called nanmin which is not included in basic Matlab. Either include an implementation, or post a link to an implementation that is compatible.

06 Nov 2009 Herve

The nanmin.m and nanmax.m files can be downloaded here :
http://www.mathworks.com/matlabcentral/fileexchange/6837-nan-suite
It could be nice if Ned adds these two files in his distribution.

Please login to add a comment or rating.
Updates
10 Aug 2007

New publishing functionality simplifies the code.

12 Jun 2009

Minor formatting change.

12 Jun 2009

Fix copyright line.

15 Jun 2009

Updated copyright line.

Tag Activity for this File
Tag Applied By Date/Time
html Ned Gulley 22 Oct 2008 09:06:15
cell mode Ned Gulley 22 Oct 2008 09:06:15
publishing Ned Gulley 22 Oct 2008 09:06:15
potw Cristina McIntire 07 Nov 2008 13:01:44
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com