View matlab dates in normal view

2 vues (au cours des 30 derniers jours)
Md Mizanur Raihan
Md Mizanur Raihan le 9 Oct 2020
In my h188a.mat file, the 1st column represents dates. It is showing the value. How do I see the actual dates?

Réponse acceptée

Sudhakar Shinde
Sudhakar Shinde le 9 Oct 2020
Modifié(e) : Sudhakar Shinde le 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));

Plus de réponses (1)

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

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by