Compare datetime-values to equality
33 ビュー (過去 30 日間)
古いコメントを表示
Hey guys!
It seems like a really dumb question, but I haven't found a solution yet: How do I compare datetime values to equality? '==' does not work.
Kind regards, Spacey
0 件のコメント
回答 (1 件)
Thomas Koelen
2015 年 4 月 9 日
t1 = datetime(2013,1,13,0,0,0);
t2 = datetime(2013,1,13,11,0,0);
tf = isequal(t1,t2)
tf=
0
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!