MATLAB Answers

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

48 views (last 30 days)
Abhinav
Abhinav on 15 May 2018
Commented: Abhinav on 15 May 2018
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.

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 15 May 2018
datetime() was introduced in R2014b.

  1 Comment

Abhinav
Abhinav on 15 May 2018
Oh. I apologize. I looked at the release version in 'datetime' argument and misread it for 2004.

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

Products