% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
HTCLOSE Close a file previously opened by HTOPEN.
HTCLOSE(FP) closes the file pointed by FP, inserting the final html
commands to make it an HTML document.
It also add the date and time of the creation (or modification) of the page.
Example:
htclose(fp)
HT544 Change permissions of outputdir.
HT544('outputdir') changes the permissions of all files contained in
directory 'outputdir', making it visible for all and turning writable
only for the owner.
Example:
ht544('/matlab/myfiles/')
HTGZIP
HTGZIP(FILE)
HTIMNAME: Returns an image name to be used by HTWHANDLE.
OUTNAME = HTIMNAME()
Example:
name = htimname
HTWHR Insert an horizontal bar in the file pointed by FP.
HTWHR(FP) inserts an horizontal bar in HTML format on a file
pointed by FP.
Example:
htwhr(fp)
HTWHANDLE
HTWHANDLE(FP, fh, 'outputdir', 'imfilename', sizex, sizey)
sizex and sizey: in percent %; always <= 100
Creates the image and an associated icon
HTOPEN Open an HTML file for edit.
FP = HTOPEN('filename','title','bg',OP,'fg') open the file 'filename' and
begin a new HTML document, inserting the title 'title' in
this file. The function defines the background with color 'bg' (in format RRGGBB)
if op is not 0 or defines the background with a image file 'bg' if op is 0.
'fg' defines the color of the foreground text.
The function can optionally be used with only two arguments, assuming that the
background color will be white.
Example:
htopen('myfile.html','Title of my page')
HTOPEN returns the File Handle for the file opened.
If file 'filename' exists, it will be overwrited.
Example of a new file with black background:
htopen('myfile.html','The title of my page','FFFFFF',1,'000000')
Example of a new file with the file back.jpg as background:
htopen('myfile.html','The title of my page','back.jpg',0,'000000')
HTWMATRIX Print the matrix mat in the HTML file pointed by fp
HTWMATRIX(FP, MAT, LAR) creates a table with the matrix MAT
in HTML format and put the values of the matrix MAT in the table cells.
The width of each cell of the table will be LAR pixels.
Example that prints the matrix matvar in fp:
htwmatrix(fp, matvar, 90)
HTWPAR Make a paragraph in an HTML document.
HTWPAR(FP) inserts a paragraph mark in the HTML document
pointed by FP.
Example:
htwpar(fp)
HTWTEXT Insert the string 'string' in the HTML file pointed by FP.
HTWTEXT(FP, 'string') inserts the string 'string' in HTML format
on the file pointed by FP.
This functin does not support special characters like '\n', '\t', etc.
Example:
htwtext(fp,'This is HTML Toolbox for Matlab. Enjoy!')
HTWURL Write a string to the file fp, making the string a link to other url.
HTWURL(FP,'string','url') writes the string 'string' to fp, inserting in the
string a "clickable" link to the url 'url'.
Example:
htwurl(fp,'This is a link to University of Sao Paulo!!','http://www.usp.br')
HTWHELP
HTWHELP(fp, topic)
Outputs a help topic
HTWIMAGE Outputs image img
HTWIMAGE(fp, 'outputdir', img, httitle, imsizes, htcolormap)
HTWMIMGDB
HTWMIMGDB(fp, 'inputdir', 'outputdir', 'urldir', img_ext)
HTWMFILESREPORT
HTWMFILESREPORT(fp, 'inputdir', 'outputdir', 'urldir')
Outputs a report about all mfiles in inputdir
HTWTABLE Print the table mat in the HTML file pointed by fp
SMAT = HTWTABLE(FP, VHEADER, HHEADER, MAT)
Example that prints the matrix matvar in fp:
HTDIRINIT
HTDIRINIT('outputdir')
Initializes the directory OUTPUTDIR. If it already
exists, HTDIRINIT deletes all files in it.
HTDIRCLEAN
HTDIRCLEAN('outputdir')
Deletes all files in outputdir. It is not recursive.
HTREPORTDEMO
HTREPORTDEMO
Outputs a report about all mfiles in the HTML Matlab Toolbox