reverse-shooting

Matlab scripts for reverse shooting
Log | Files | Refs | README

rowfind.m (260B)


      1 function i=rowfind(data,irow);
      2 
      3 % rowfind -- returns the indexes of the rows of data that equal irow.
      4 %    Actually, returns a vector of zeros and ones instead.
      5 
      6 N=length(irow);
      7 M=zeros(size(data));
      8 
      9 for k=1:N;
     10    M(:,k)=(data(:,k)==irow(k));
     11 end;
     12 i=all(M')';