IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
html_confusion.m File Reference

Detailed Description

Transforms matrix into HTML.

See also
html_comparison_std.m, html_comparison.m, html_table_std_colors.m, html_table_std.m

Definition in file html_confusion.m.

Go to the source code of this file.

Functions

function html_confusion (in CC, in rowlabels, in collabels, in flag_perc, in flag_rejected, in flag_color, in SS)
 

Function Documentation

function html_confusion ( in  CC,
in  rowlabels,
in  collabels,
in  flag_perc,
in  flag_rejected,
in  flag_color,
in  SS 
)
Parameters
CCconfusion matrix (first column always represents "rejected" items)
rowlabelsrow labels
collabels=rowlabelscolumn labels
flag_perc=0
flag_rejected=(auto-detect)
flag_color=1Whether to use colors for cell background. If true, will paint the background with a red gradient which is
SSStandard deviations (optional) proportional to the square root of the number inside divided by the square root of the corresponding row sum.
Returns
s A string