plot with string value in x axis

3 visualizaciones (últimos 30 días)
alpedhuez
alpedhuez el 3 de Jul. de 2020
Editada: alpedhuez el 3 de Jul. de 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 comentarios
madhan ravi
madhan ravi el 3 de Jul. de 2020
Editada: madhan ravi el 3 de Jul. de 2020
alpedhuez
alpedhuez el 3 de Jul. de 2020
Editada: alpedhuez el 3 de Jul. de 2020
Solution: the problem is that in Matlab 'mm' is minuets that one needed to use 'MM' for months.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by