⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nlabcmp.m

📁 一个强大的统计模式识别工具箱
💻 M
字号:
%NLABCMP Compare two label lists and count the differences% %   [N,C] = NLABCMP(LAB1,LAB2)% % INPUT%   LAB1, %   LAB2  Label lists%% OUTPUT%   C     A 0/1 vector pointing to different/equal labels%   N     Number of differences in LAB1 and LAB2%% DESCRIPTION  %  Compares two label lists and counts the disagreements between them.% Copyright: R.P.W. Duin, r.p.w.duin@prtools.org% Faculty EWI, Delft University of Technology% P.O. Box 5031, 2600 GA Delft, The Netherlands% $Id: nlabcmp.m,v 1.4 2008/07/28 08:57:42 duin Exp $function [N,C] = nlabcmp(S1,S2)	prtrace(mfilename);	[m,k] = size(S1);	[n,l] = size(S2);	if (m ~= n)		error('Label list sizes do not match.')	end	if (iscell(S1) ~= iscell(S2))		error('Label lists should be both cells, strings or numeric.')	end	if (iscell(S1))		C = strcmp(S1,S2);	elseif (all(size(S1) == size(S2)))		C = all(S1'==S2',1)';	else		C = strcmp(cellstr(S1),cellstr(S2));  end	N = m - sum(C);	return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -