1 function [isThereVec,indLocVec]=
ismembercellstr(leftList,rightList,isHigherIndexUsed)
3 isHigherIndexUsed=
false;
6 nRightElems=numel(rightList);
7 nLeftElems=numel(leftList);
11 isThereVec=strcmp(leftList,rightList);
12 indLocVec=double(isThereVec);
17 for iRightElem=1:nRightElems
18 if strcmp(leftList,rightList{iRightElem})
24 for iRightElem=1:nRightElems
25 if strcmp(leftList,rightList{iRightElem})
34 isThereVec=
false(size(leftList));
35 indLocVec=zeros(size(leftList));
38 for iLeftElem=1:nLeftElems
39 if strcmp(leftList{iLeftElem},rightList)
40 isThereVec(iLeftElem)=
true;
41 indLocVec(iLeftElem)=1;
45 for iLeftElem=1:nLeftElems
46 if strcmp(leftList{iLeftElem},rightList)
47 isThereVec(iLeftElem)=
true;
48 indLocVec(iLeftElem)=1;
55 for iLeftElem=1:nLeftElems
56 for iRightElem=1:nRightElems
57 if strcmp(leftList{iLeftElem},rightList{iRightElem})
58 isThereVec(iLeftElem)=
true;
59 indLocVec(iLeftElem)=iRightElem;
64 for iLeftElem=1:nLeftElems
65 for iRightElem=1:nRightElems
66 if strcmp(leftList{iLeftElem},rightList{iRightElem})
67 isThereVec(iLeftElem)=
true;
68 indLocVec(iLeftElem)=iRightElem;
function ismembercellstr(in leftList, in rightList, in isHigherIndexUsed)
ISMEMBERCELLSTR produces the same results as the built-in function "ismember" looking for the higher ...