View matlab dates in normal view

조회 수: 15 (최근 30일)
Md Mizanur Raihan
Md Mizanur Raihan 2020년 10월 9일
편집: Sudhakar Shinde 2020년 10월 9일
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에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by