Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.0.0 - Português


isnat

check if a variable contains "Not a Time" values

Syntax

t = isnat(x)

Arguments

x

datetime matrix

t

boolean matrix of the same size as x

Description

t = isnat(x) returns a boolean matrix of the same size as x, where t(i) is %t when x(i) is NaT, and %f otherwise.

Examples

isnat(NaT())
isnat(NaT(1))
dt = NaT(3, 3)
isnat(dt)
dt(1:4:9) = datetime(2022, 1, 1);
isnat(dt)

See also

  • NaT — Not a Time function used to create empty datetime
  • datetime — create points in time
Report an issue
<< hours Data e Hora NaT >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Oct 24 14:35:27 CEST 2023