source: hep2cells/showconfmat.m @ 45

Last change on this file since 45 was 43, checked in by dtax, 12 years ago

New, useful functions for the cells.

File size: 300 bytes
RevLine 
[43]1function R = showconfmat(C,ll)
2
3if size(C,1)~=size(C,2)
4   error('Matrix C should be square.');
5end
6if size(C,1)~=size(ll,1)
7   error('Number of rows in lablist does not match C.');
8end
9
10R = results(C,ll,ll);
11R = setdimname(R,'true class','estimated class');
12if nargout<1
13   show(R,'text','%d');
14end
Note: See TracBrowser for help on using the repository browser.