Borrar filtros
Borrar filtros

Compare datetime-values to equality

20 visualizaciones (últimos 30 días)
Spacey
Spacey el 9 de Abr. de 2015
Respondida: Thomas Koelen el 9 de Abr. de 2015
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

Respuestas (1)

Thomas Koelen
Thomas Koelen el 9 de Abr. de 2015
t1 = datetime(2013,1,13,0,0,0);
t2 = datetime(2013,1,13,11,0,0);
tf = isequal(t1,t2)
tf=
0

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by