View matlab dates in normal view

1 回表示 (過去 30 日間)
Md Mizanur Raihan
Md Mizanur Raihan 2020 年 10 月 9 日
編集済み: Sudhakar Shinde 2020 年 10 月 9 日
In my h188a.mat file, the 1st column represents dates. It is showing the value. How do I see the actual dates?

採用された回答

Sudhakar Shinde
Sudhakar Shinde 2020 年 10 月 9 日
編集済み: Sudhakar Shinde 2020 年 10 月 9 日
you can use 'datestr ' function to see the actual date:
Here is the example snap shows for your first number converted into date '14-Jun-1977'.
dt = datestr(d(:,1));

その他の回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 10 月 9 日
Try this
dt = datetime(d(:,1), 'ConvertFrom', 'datenum')

カテゴリ

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