View matlab dates in normal view

1 Ansicht (letzte 30 Tage)
Md Mizanur Raihan
Md Mizanur Raihan am 9 Okt. 2020
Bearbeitet: Sudhakar Shinde am 9 Okt. 2020
In my h188a.mat file, the 1st column represents dates. It is showing the value. How do I see the actual dates?

Akzeptierte Antwort

Sudhakar Shinde
Sudhakar Shinde am 9 Okt. 2020
Bearbeitet: Sudhakar Shinde am 9 Okt. 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));

Weitere Antworten (1)

Ameer Hamza
Ameer Hamza am 9 Okt. 2020
Try this
dt = datetime(d(:,1), 'ConvertFrom', 'datenum')

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by