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

16 ビュー (過去 30 日間)
Abhinav
Abhinav 2018 年 5 月 15 日
コメント済み: Abhinav 2018 年 5 月 15 日
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.

採用された回答

Walter Roberson
Walter Roberson 2018 年 5 月 15 日
datetime() was introduced in R2014b.
  1 件のコメント
Abhinav
Abhinav 2018 年 5 月 15 日
Oh. I apologize. I looked at the release version in 'datetime' argument and misread it for 2004.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by