이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
tscollection
tscollection
객체 만들기
설명
tscollection
객체는 동일한 시간 벡터를 갖는 하나 이상의 timeseries
객체들 모음입니다. timeseries
모음은 동시에 발생하는 여러 데이터 추세를 분석하는 데 유용합니다.
생성
tscollection
객체를 만들려면 tscollection
함수를 사용하십시오.
설명
입력 인수
ts
— 입력 timeseries
스칼라 | 셀형 배열
입력 timeseries
로, 스칼라 또는 셀형 배열로 지정됩니다.
timevals
— 샘플 시간
스칼라 | 벡터
샘플 시간으로, 숫자형 스칼라나 숫자형 벡터 또는 날짜 문자형 벡터로 구성된 셀형 배열로 지정됩니다. 유효한 날짜 문자형 벡터의 형식은 다음과 같습니다.
형식 | 예 |
---|---|
dd-mmm-yyyy HH:MM:SS | 01-Mar-2000 15:45:17 |
dd-mmm-yyyy | 01-Mar-2000 |
mm/dd/yy | 03/01/00 |
mm/dd | 03/01 |
HH:MM:SS | 15:45:17 |
HH:MM:SS PM | 3:45:17 PM |
HH:MM | 15:45 |
HH:MM PM | 3:45 PM |
mmm.dd,yyyy HH:MM:SS | Mar.01,2000 15:45:17 |
mmm.dd,yyyy | Mar.01,2000 |
mm/dd/yyyy | 03/01/2000 |
데이터형: double
| single
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| cell
예: tsc = tscollection(ts,'Name','MyTSC')
선택적으로 Name,Value
인수가 쉼표로 구분되어 지정됩니다. 여기서 Name
은 인수 이름이고 Value
는 대응값입니다. Name
은 작은따옴표(' '
) 안에 표시해야 합니다. Name1,Value1,Name2,Value2
와 같이 이름-값 쌍의 인수를 어떤 순서로든 지정할 수 있습니다.
Name
— tscollection
이름
문자형 벡터
tscollection
이름으로, 문자형 벡터로 지정됩니다.
isDatenum
— datenum
표시자
true
(디폴트 값) | false
datenum
표시자로, true
또는 false
로 지정됩니다. 값 true
는 tscollection
객체의 시간 벡터가 datenum
형 값으로 구성되었음을 나타냅니다. 자세한 내용은 datenum
항목을 참조하십시오.
데이터형: logical
속성
Name
— tscollection
이름
문자형 벡터
tscollection
이름으로, 문자형 벡터로 표현됩니다.
Time
— 시간 값
벡터
시간 값으로, 벡터로 표현됩니다.
TimeInfo.StartDate
가 비어 있으면 값은 0
을 기준으로 측정됩니다. TimeInfo.StartDate
가 정의되어 있으면 값은 StartDate
을 기준으로 측정된 날짜 문자형 벡터를 나타냅니다.
Time
의 길이는 각 컬렉션에서 Data
의 첫 번째 또는 마지막 차원과 같아야 합니다.
TimeInfo
— 시간 정보
필드의 모음
시간 정보로, 시간 벡터를 설명하는 다음 필드의 모음으로 표현됩니다.
Units
— 값이'weeks'
,'days'
,'hours'
,'minutes'
,'seconds'
,'milliseconds'
,'microseconds'
또는'nanoseconds'
인 시간 단위.Start
— 시작 시간.End
— 종료 시간(읽기 전용).Increment
— 연속한 시간 값 사이의 간격(시간이 균일하게 샘플링되지 않은 경우NaN
).Length
— 시간 벡터의 길이(읽기 전용).Format
— 날짜 표시를 정의하는 문자형 벡터(datestr
참조).StartDate
— 기준 날짜를 정의하는 날짜 문자형 벡터(setabstime
참조).UserData
— 추가 사용자 정의 정보.
필드의 값에 액세스하려면 tscollection
객체 tsc
에 대해 tsc.TimeInfo.field
형식을 사용하십시오.
객체 함수
수정 및 결합하기
addsampletocollection | tscollection 에 샘플 추가 |
addts | tscollection 에 timeseries 추가 |
delsamplefromcollection | tscollection 에서 샘플 삭제 |
horzcat | tscollection 객체를 가로로 결합 |
removets | Remove timeseries from
tscollection |
resample | tscollection 시간 벡터 리샘플링 |
set | Set tscollection properties |
setabstime | Set tscollection times as date character vectors |
settimeseriesnames | Rename timeseries in
tscollection |
vertcat | Vertically concatenate tscollection objects |
쿼리하기
get | tscollection 속성 쿼리 |
getabstime | tscollection 시간 벡터를 셀형 배열로 변환 |
getsampleusingtime | tscollection 데이터의 서브셋 |
gettimeseriesnames | tscollection 에 있는 timeseries 의 이름 |
isempty | tscollection 이 비어 있는지 여부를 확인합니다. |
length | tscollection 시간 벡터의 길이 |
size | Size of tscollection |
예제
tscollection
만들기
두 timeseries
객체에서 tscollection
객체를 만듭니다.
ts1 = timeseries([1.1 2.9 3.7 4.0 3.0]',1:5,... 'Name','Acceleration'); ts2 = timeseries([3.2 4.2 6.2 8.5 1.1]',1:5,... 'Name','Speed'); ts = tscollection({ts1;ts2})
Time Series Collection Object: unnamed Time vector characteristics Start time 1 seconds End time 5 seconds Member Time Series Objects: Acceleration Speed
버전 내역
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)