


brede_mat_2mat2html - Convert two matrices to HTML
O = brede_mat_2mat2html(M1, M2, 'PropertyName', 'PropertyValue')
Input: M1 'Mat' structure
M2 'Mat' structure
Property: DirectoryBar [ {} | string ] String in HTML for the
directory bar
Filename [ {Mat.html} | filename as string ]
Filename with extension
MaxItems [ {20} | Integer ] The maximum number of
items (eg, strings) shown for each
component.
Output [ {file} | string ]
Title String with title for the HTML-page
Output: O String with HTML (dependent on 'output')
This function constructs HTML for two 'mat' structures. The
two matrices are assumed to have been constructed from a
matrix decomposition algorithm:
M1 * M2 = M
That is, the columns of the first matrix should correspond to
the rows of the second matrix.
Example:
f = fullfile(fileparts(which('brede')), 'xml', 'wobibs.xml');
B = brede_read_xml(f, 'output', 'collapsesecond');
M = brede_bib_bib2mat(B, 'type', 'keywords');
M = brede_mat_elimsingle(M);
M = brede_mat_elimstop(M, 'filename', 'stop_meshcommon.txt')
[W, H] = brede_mat_nmf(M, 'components', 10);
brede_mat_2mat2html(W, H);
See also BREDE, BREDE_MAT, BREDE_MAT_NMF, BREDE_BIB_BIB2HTML
$Id: brede_mat_2mat2html.m,v 1.31 2008/03/19 15:23:37 fn Exp $