multiple Time series plot

조회 수: 3 (최근 30일)
Mitson Monteiro
Mitson Monteiro 2013년 6월 18일
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개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by