function R = showconfmat(C,ll) if size(C,1)~=size(C,2) error('Matrix C should be square.'); end if size(C,1)~=size(ll,1) error('Number of rows in lablist does not match C.'); end R = results(C,ll,ll); R = setdimname(R,'true','estimated class'); if nargout<1 show(R,'text','%3d'); end