Main Content

append

timeseries 객체를 시간에 따라 결합

설명

예제

ts = append(ts1,ts2,…,tsN)은 시간 차원을 따라 timeseries 객체 ts1, ts2 등을 결합하여 새로운 timeseries 객체를 생성합니다.

예제

모두 축소

두 개의 timeseries 객체를 만듭니다.

ts1 = timeseries(rand(5,1),[1 2 3 4 5],"Name","Series 1")
  timeseries

  Common Properties:
            Name: 'Series 1'
            Time: [5x1 double]
        TimeInfo: tsdata.timemetadata
            Data: [5x1 double]
        DataInfo: tsdata.datametadata
ts2 = timeseries(rand(5,1),[6 7 8 9 10],"Name","Series 2")
  timeseries

  Common Properties:
            Name: 'Series 2'
            Time: [5x1 double]
        TimeInfo: tsdata.timemetadata
            Data: [5x1 double]
        DataInfo: tsdata.datametadata

timeseries 객체를 시간에 따라 결합합니다. 출력 timeseries 객체는 두 입력에 이름이 있어도 이름을 갖지 않습니다.

ts = append(ts1,ts2)
  timeseries

  Common Properties:
            Name: 'unnamed'
            Time: [10x1 double]
        TimeInfo: tsdata.timemetadata
            Data: [10x1 double]
        DataInfo: tsdata.datametadata

결과로 만들어진 시간 샘플을 표시합니다.

ts.Time
ans = 10×1

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10

입력 인수

모두 축소

입력 timeseries로, 결합할 스칼라 timeseries 객체 목록으로 지정됩니다.

  • 입력 timeseries의 마지막 시간 샘플은 목록에서 그 뒤에 오는 timeseries의 처음 시간보다 빠르거나 같아야 합니다.

  • 각 입력 timeseries의 샘플 크기는 동일해야 합니다.

데이터형: timeseries

확장 기능

스레드 기반 환경
MATLAB®의 backgroundPool을 사용해 백그라운드에서 코드를 실행하거나 Parallel Computing Toolbox™의 ThreadPool을 사용해 코드 실행 속도를 높일 수 있습니다.

버전 내역

R2006a 이전에 개발됨

참고 항목