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일

1 개 추천

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일

0 개 추천

Try this
dt = datetime(d(:,1), 'ConvertFrom', 'datenum')

카테고리

도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by