View matlab dates in normal view

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Manage Products 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by