multiple Time series plot

hi, i am trying to plot 2 time series data one starting on 1st oct and the other starting on 20th oct i am using the code below, but both the plots are starting on 1st oct. prog:
ts1 = timeseries(T15_03(:,1),1:182); ts1.TimeInfo.Units = 'days'; ts1.TimeInfo.StartDate = '01-Oct' % Set start date. ts1.TimeInfo.Format = 'mmm dd' % Set format for display on x-axis. ts1.Time = ts1.Time-ts1.Time(1); % Express time relative to the start date. plot(ts1,'r') hold on
ts2 = timeseries(T15_02(:,1),1:163); ts2.Name = 'Daily Count'; ts2.TimeInfo.Units = 'days'; ts2.TimeInfo.StartDate = '20-Oct'; ts2.TimeInfo.Format = 'mmm dd'; ts2.Time = ts2.Time-ts2.Time(1); plot(ts2)

Réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by