MATLAB Answers

plotting date from datetime array

6 views (last 30 days)
ismail bhamjee
ismail bhamjee on 16 Dec 2019
Answered: Akira Agata on 16 Dec 2019
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'.

  0 Comments

Sign in to comment.

Accepted Answer

Akira Agata
Akira Agata on 16 Dec 2019
'Y' should be a captal letter. Please try:
histogram(d.Year)

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.