Convert date from number to format in matllab

1 回表示 (過去 30 日間)
NN
NN 2021 年 1 月 31 日
編集済み: Walter Roberson 2021 年 2 月 5 日
I have original time and date format as mentioned below:
2/17/2020 9:48:18 AM
I did forecasting using this , and after forecasting output date in the plot appears in number format like :
43878.4085416667
How can i convert it back to original date and time format ?
  9 件のコメント
NN
NN 2021 年 1 月 31 日
This is the output i am getting . i need to convert it back to date time format
NN
NN 2021 年 1 月 31 日
i tried converting it to character array using below code ,
S = double(out);
S1=datestr(S);
but still not able to plot

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

採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 31 日
outd = datetime(out, 'convertfrom', 'excel');
plot(outd)
  10 件のコメント
NN
NN 2021 年 2 月 5 日
Walter Roberson
Walter Roberson 2021 年 2 月 5 日
編集済み: Walter Roberson 2021 年 2 月 5 日
I was right, the bug is in character #11 of line 7 of your code. (Prove me wrong!)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by