plotting date from datetime array

조회 수: 1 (최근 30일)
ismail bhamjee
ismail bhamjee 2019년 12월 16일
답변: Akira Agata 2019년 12월 16일
I have a date time array which has dates in the format of dd-MM-yy. This data also has NATs.
i would like to create a graph which shows how many intances a particular year has.
so year would be along the X asis and the Y axis would be number of instances.
I have tried.
>> histogram(d.year)
d being my datetime array
the Data looks like this:
.Capture.PNG
I get the error
Unrecognized property: 'year'.

채택된 답변

Akira Agata
Akira Agata 2019년 12월 16일
'Y' should be a captal letter. Please try:
histogram(d.Year)

추가 답변 (0개)

카테고리

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