mttExtractText.m 428 B

1234567891011121314
  1. function extracted_text = mttExtractText(text,left,right)
  2. if isempty(text)
  3. extracted_text = [] ;
  4. else
  5. where_left = min(findstr(text,left)) ;
  6. where_right = min(findstr(text,right)) ;
  7. if ~isempty(where_left) & ~isempty(where_right)
  8. extracted_text = mttClipText(text(where_left+length(left):where_right-1)) ;
  9. else
  10. extracted_text = [] ;
  11. end
  12. end