Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Hello, I have different time series data in differend time spane. eg. One I have from year 2004 to 2011 and one I have year 2007 to 2011 . How to get a plot so that I can get both time series with my X- axis within the range from 2004 to 2011

1 vue (au cours des 30 derniers jours)
Chris Martin
Chris Martin le 23 Déc 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hello, I have different time series data in differend time spane. eg. One I have from year 2004 to 2011 and one I have year 2007 to 2011 . How to get a plot so that I can get both time series with my X- axis within the range from 2004 to 2011

Réponses (1)

José-Luis
José-Luis le 23 Déc 2012
Assuming you have your dates as a Matlab serial date number, and that you want to set the limits in the active figure:
set(gcf,'XLim',[datenum(2004,1,1) datenum(2011,12,31]);
If you don't know what a serial date number is, please have a look at
doc datenum

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by