plot with string value in x axis

2 Ansichten (letzte 30 Tage)
alpedhuez
alpedhuez am 3 Jul. 2020
Bearbeitet: alpedhuez am 3 Jul. 2020
I have a data
date temperate
----
'2020-01' 10
'2020-02' 10
'2020-03' 20
I tried
plot(date, temperature)
and got "invalid data argument"
Please advise.
  4 Kommentare
madhan ravi
madhan ravi am 3 Jul. 2020
Bearbeitet: madhan ravi am 3 Jul. 2020
alpedhuez
alpedhuez am 3 Jul. 2020
Bearbeitet: alpedhuez am 3 Jul. 2020
Solution: the problem is that in Matlab 'mm' is minuets that one needed to use 'MM' for months.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by