Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Matching two objects based on Time difference

조회 수: 5 (최근 30일)
Curious Mind
Curious Mind 2020년 2월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
Supposing I have two cars A and B. A always arrives at every 10 minutes while B arrives at every 5 minutes or less after the arrival of A. Sometimes B arrives at a time not equal to 5 minutes, say 12 minutes after the arrival of A. I am looking for a suggestion or a code that will match A to all Bs whose time of arrival was 5 minutes or less. That is if the time difference between A and B in this case is 5, then match A and B and out the output in C. As long as the difference in the time of arrival of A and B is 5 minutes or less (should never go over 5 minutes), then match them and output the result in C.
Thank you so much.

답변 (0개)

이 질문은 마감되었습니다.

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by