multiple Time series plot
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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)
0 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!