MATLAB 도움말 센터
tscollection에서 샘플 삭제
tscollection
tscout = delsamplefromcollection(tscin,'Index',ind)
tscout = delsamplefromcollection(tscin,'Value',timevals)
tscout = delsamplefromcollection(tscin,'Index',ind)는 tscollection 객체에서 샘플을 삭제합니다. ind는 삭제할 샘플에 대응하는 tscin 시간 벡터의 인덱스를 지정합니다.
tscin
ind
예제
tscout = delsamplefromcollection(tscin,'Value',timevals)는 timeval의 시간 값에 해당하는 샘플을 삭제합니다.
timevals
timeval
모두 축소
두 timeseries 객체에서 tscollection 객체를 만듭니다. 그런 다음 다섯 번째 샘플을 제거합니다.
timeseries
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'); tscin = tscollection({ts1;ts2}); tscout = delsamplefromcollection(tscin,'Index',5)
Time Series Collection Object: unnamed Time vector characteristics Start time 1 seconds End time 4 seconds Member Time Series Objects: Acceleration Speed
입력 tscollection으로, 스칼라로 지정됩니다.
시간 벡터 인덱스로, 스칼라 또는 벡터로 지정됩니다.
샘플 시간으로, 숫자형 스칼라나 숫자형 벡터 또는 날짜 문자형 벡터로 구성된 셀형 배열로 지정됩니다. 유효한 날짜 문자형 벡터와 string형의 형식은 다음과 같을 수 있습니다.
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
double
single
int8
int16
int32
int64
uint8
uint16
uint32
uint64
cell
R2006a 이전에 개발됨
timeseries | addsampletocollection | tscollection
addsampletocollection
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의