How do I match 2 timetables via a Left Join (outerjoin)

and where the date may not exist on the right timetable , I would like to find the nearest date greater than the one that doesn't exist.
I'm aware of synchronise which performs a linear interpolation - essentially , I'd like the equiv of find(X >= y , 1 , 'first') for each date
Thanks

답변 (1개)

Cris LaPierre
Cris LaPierre 2023년 12월 11일

0 개 추천

I would recommend using the Join Tables Live Task to perform your join interactively. Once you find the settings that get you the result you want, you can convert the task to code.
Otherwise, please attach your data using the paperclip icon, as well as an example of what the output should be.

댓글 수: 2

As Chris said, it helps to see the data and an example of the desired output. But from your description, does synchronize(A,B,"first","previous") do the trick?
Hey Eric , didn't see the 'first' , 'previous' in the documentation .. is that new? I'll try it .. Thanks

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

카테고리

도움말 센터File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기

질문:

2023년 12월 11일

댓글:

2023년 12월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by