source:
hep2cells/showconfmat.m
@
82
Last change on this file since 82 was 46, checked in by dtax, 12 years ago | |
---|---|
File size: 295 bytes |
Line | |
---|---|
1 | function R = showconfmat(C,ll) |
2 | |
3 | if size(C,1)~=size(C,2) |
4 | error('Matrix C should be square.'); |
5 | end |
6 | if size(C,1)~=size(ll,1) |
7 | error('Number of rows in lablist does not match C.'); |
8 | end |
9 | |
10 | R = results(C,ll,ll); |
11 | R = setdimname(R,'true','estimated class'); |
12 | if nargout<1 |
13 | show(R,'text','%3d'); |
14 | end |
Note: See TracBrowser
for help on using the repository browser.