comparing two times to find the nearest minute for a specific time

3 ビュー (過去 30 日間)
Salma fathi
Salma fathi 2022 年 9 月 29 日
回答済み: KSSV 2022 年 9 月 29 日
we have two tabels A and B each of which have column representing the date and time in the format "uuuuMMddHHmm", we would like to check if there are any matching dates between the two tables, the year, month, day and hour should completley match whereas for the minutes, since it is hard to compare for the same minute we would like to check for the nearest minute that we can find for that specific time of day. After we find the matching dates we would like to copy the corresponding value of the variable fof2 from table B to table A.
I was able to do the first comparison, but I am not sure how to find the nearset minute to a specific time, if anyone can help.
Thank you in adavnce.

回答 (1 件)

KSSV
KSSV 2022 年 9 月 29 日

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by