Clear Filters
Clear Filters

View matlab dates in normal view

1 view (last 30 days)
In my h188a.mat file, the 1st column represents dates. It is showing the value. How do I see the actual dates?

Accepted Answer

Sudhakar Shinde
Sudhakar Shinde on 9 Oct 2020
Edited: Sudhakar Shinde on 9 Oct 2020
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));

More Answers (1)

Ameer Hamza
Ameer Hamza on 9 Oct 2020
Try this
dt = datetime(d(:,1), 'ConvertFrom', 'datenum')

Categories

Find more on Manage Products in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!