Main Content

get

tscollection 속성 쿼리

설명

예제

tscinfo = get(tsc)tscollection 객체 tsc의 모든 속성을 반환합니다.

예제

tscinfo = get(tsc,propname)propname 속성의 값을 반환합니다. 전체 tscollection 속성 이름 목록은 tscollection을 참조하십시오.

예제

모두 축소

timeseries 객체에서 tscollection 객체를 만든 후, 만든 객체의 속성을 표시합니다.

ts1 = timeseries(rand(5,1),'Name','ts1');
ts2 = timeseries(rand(5,1),'Name','ts2');
tsc = tscollection({ts1,ts2});
tscinfo = get(tsc)
tscinfo = struct with fields:
        Name: 'unnamed'
        Time: [5x1 double]
    TimeInfo: [1x1 tsdata.timemetadata]
      Length: 5
         ts1: [1x1 timeseries]
         ts2: [1x1 timeseries]

Length 속성만 표시합니다.

tsclength = get(tsc,'Length')
tsclength = 5

입력 인수

모두 축소

입력 tscollection으로, 스칼라로 지정됩니다.

속성 이름으로, 문자형 벡터로 지정됩니다. 전체 tscollection 속성 이름 목록은 tscollection을 참조하십시오.

데이터형: char

버전 내역

R2006a 이전에 개발됨

참고 항목

| |