plotting date from datetime array

1 Ansicht (letzte 30 Tage)
ismail bhamjee
ismail bhamjee am 16 Dez. 2019
Beantwortet: Akira Agata am 16 Dez. 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'.

Akzeptierte Antwort

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

Weitere Antworten (0)

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