Index: mttroot/mtt/bin/trans/m/name_in_list.m ================================================================== --- mttroot/mtt/bin/trans/m/name_in_list.m +++ mttroot/mtt/bin/trans/m/name_in_list.m @@ -12,10 +12,13 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ +% %% Revision 1.1 1998/01/23 09:22:05 peterg +% %% Initial revision +% %% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [N,M] = size(list); if N<1 @@ -23,13 +26,12 @@ end; index = 0; for i = 1:N - name,list(i,:) - j = findstr(name,list(i,:)) - if length(j==1) + j = findstr(name,list(i,:)); + if (length(j)==1) if j(1)==1 if index==0 index = i; else index = [index i];