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
|
Rev | Line | |
---|
[43] | 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 class','estimated class'); |
---|
| 12 | if nargout<1 |
---|
| 13 | show(R,'text','%d'); |
---|
| 14 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.