Align two time-stamped data streams in time

버전 1.0.0.0 (1.78 KB) 작성자: Qi An
Align two time-stamped data streams in time
다운로드 수: 571
업데이트 날짜: 2013/2/22

라이선스 보기

TIMEALIGN Align 2 data matrices in time.
The presumption is that t1 and t2 vectors are associated with data matrices that must be time aligned. There is no assumption of even time spacing, but times are assumed to be monotonically increasing.

Matrices u1 and u2 must be column-based, i.e., length(t1) == size(u1,1) and length(t2) == size(u2,1)

[t,a1,a2] = timealign(t1,t2,u1,u2) returns
t time, the union of t1 & t2
a1 u1 at points where t == t1 (NaN otherwise)
a2 u2 at points where t == t2 (NaN otherwise)

[...] = timealign(t1,t2,u1,u2,res) aligns using a fixed resolution res


EXAMPLE:
t1 = [1 2 3]'; u1 = [6 7 8]';
t2 = [2 4 5]'; u2 = [3 4; -1 2; 9 12];
[t,a1,a2] = timealign(t1,t2,u1,u2)
t = a1 = a2 =
1 6 NaN NaN
2 7 3 4
3 8 NaN NaN
4 NaN -1 2
5 NaN 9 12

인용 양식

Qi An (2024). Align two time-stamped data streams in time (https://www.mathworks.com/matlabcentral/fileexchange/40468-align-two-time-stamped-data-streams-in-time), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Vector Volume Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0