How to separate time series data?
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
For context, I have 15 seconds worth of data although I only want to analyse the data from 12 seconds to 15 seconds. How do i seperate the final 3 seconds from my time series data? 
TIA :)
댓글 수: 0
답변 (1개)
  Star Strider
      
      
 2023년 3월 2일
        It depends how they are formatted.  
Assuming the times are a datetime array — 
t = datetime(1,1,1) + seconds(0:0.5:15).';
s = randn(size(t));
T1 = table(t,s)                                         % Data Table
Lv = second(T1{:,1}) >= 12;                             % Logical Vector
T1e = T1(Lv,:)                                          % Result
.
댓글 수: 0
커뮤니티
더 많은 답변 보기: Power Electronics Community
참고 항목
카테고리
				Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!