필터 지우기
필터 지우기

Compare datetime-values to equality

조회 수: 20 (최근 30일)
Spacey
Spacey 2015년 4월 9일
답변: Thomas Koelen 2015년 4월 9일
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

답변 (1개)

Thomas Koelen
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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by