Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

getsampleusingtime (tscollection)

Extract data samples into new tscollection object

Syntax

tsc2 = getsampleusingtime(tsc1,Time)
tsc2 = getsampleusingtime(tsc1,StartTime,EndTime)

Description

tsc2 = getsampleusingtime(tsc1,Time) returns a new tscollection tsc2 with a single sample corresponding to Time in tsc1.

tsc2 = getsampleusingtime(tsc1,StartTime,EndTime) returns a new tscollection tsc2 with samples between the times StartTime and EndTime in tsc1.

More About

collapse all

Tips

When the time vector in ts1 is numeric, StartTime and EndTime must also be numeric. When the times in ts1 are date strings and the StartTime and EndTime values are numeric, then the StartTime and EndTime values are treated as datenum values.

See Also

Introduced before R2006a

Was this topic helpful?