필터 지우기
필터 지우기

Search For String within String

조회 수: 1 (최근 30일)
Dean Kennedy
Dean Kennedy 2019년 5월 20일
댓글: Dean Kennedy 2019년 5월 21일
I have a large set of dates and times in a string array and I need to search for a smaller string of dates and times within the large set. I have tried using strfind and strcmp but can't seem to manage it.
It's also possible that the dates and times won't match up perfectly (they may differ by some number of seconds, I will figure out a suitable time when necessary), so is it then also possible to use a conditional statement on a string so that I can do the search?
  댓글 수: 5
Stephen23
Stephen23 2019년 5월 21일
"I have a large set of dates and times in a string array ..."
This is what I found in the uploaded files (opened using R2015b):
>> FileTimes
FileTimes =
""
>> SDT
SDT =
""
>>
Dean Kennedy
Dean Kennedy 2019년 5월 21일
That's strange, here's the whole workspace (if that helps). Files in question are 'SDT' (large set of dates) and 'FileTimes' (small set).

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by