Borrar filtros
Borrar filtros

plotting data by month/year

13 visualizaciones (últimos 30 días)
Alexis L
Alexis L el 19 de Jul. de 2017
Respondida: Chad Greene el 24 de Jul. de 2017
Hi,
I have data files from 06/2016 to 06/2017 by month which I am plotting. I need the xaxis intervals to be labeled with the month and year; can anyone help me with this?
Thank you!
  2 comentarios
dpb
dpb el 19 de Jul. de 2017
See <plot-dates> and links therefrom.
Alexis L
Alexis L el 24 de Jul. de 2017
Thank you!

Iniciar sesión para comentar.

Respuestas (2)

Cong Ba
Cong Ba el 24 de Jul. de 2017
Hi Alexis,
You may look into this data type called timetable . It is quite new so not many people know about it. But it is basically just designed to deal with time series or any data with time stamps, and according to my experience, it does job way better than scripts I wrote before.

Chad Greene
Chad Greene el 24 de Jul. de 2017
Alternatively, you can call this after plotting in datenum format. datenum is available for over 10 years in the basic distribution of Matlab.
datetick('x','mmm-yy','keeplimits')

Categorías

Más información sobre Line Plots 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