datetime: Undefined function 'datetime' for input arguments of type 'double'

16 Ansichten (letzte 30 Tage)
I am using following code to convert datenum to datetime
x=723707;
y=datetime(x,'ConvertFrom','datenum');
I get the error message:
Undefined function 'datetime' for input arguments of type 'double'.
When I try
open datetime
I get the error message that
file 'datetime' does not exist.
I don't understand what's wrong. Please help. I am using MATLAB 2014a.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Mai 2018
datetime() was introduced in R2014b.
  1 Kommentar
Abhinav
Abhinav am 15 Mai 2018
Oh. I apologize. I looked at the release version in 'datetime' argument and misread it for 2004.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by