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

📄 matchlablist.m

📁 这个为模式识别工具箱
💻 M
字号:
%MATCHLABLIST Match entries of lablist1 with lablist2%%    I = MATCHLABLIST(LABLIST1,LABLIST2)%% INPUT%    LABLIST1  list of class names%    LABLIST2  list of class names%% OUTPUT%    I         indices for LABLIST1 appearing in LABLIST2%% DESCRIPTION% Find the indices of places where the entries of LABLIST1 appear  % in LABLIST2, i.e.  LABLIST1 = LABLIST2(I).% Note that this operation is not symmetric, changing the order of% LABLIST1 and LABLIST2 changes I! % I(i) = 0 for labels appearing in LABLIST1 that are not in LABLIST2.%% SEE ALSO% costm, testcost% Copyright: D.M.J. Tax davidt@ph.tn.tudelft.nl% Faculty of Applied Sciences, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlandsfunction I = matchlablist(lablist1,lablist2)	prtrace(mfilename);n = size(lablist1,1);I = zeros(n,1); % the resorting vectorfor i=1:n  tmp = strmatch(deblank(lablist1(i,:)),lablist2,'exact');  if ~isempty(tmp)		I(i) = tmp(1);	else		I(i) = 0;  endendreturn

⌨️ 快捷键说明

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