findIdx.m 98 B

123
  1. function idx = findIdx(roi,range)
  2. idx = max(find(range<=roi(1)))+1:max(find(range<=roi(2)));
  3. end