Regarding removal of low values within time series
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a time series data (see attached data_qn.xls) that consists of values that are clearly lower than the rest of the observations. How could I remove these values in MATLAB?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164934/image.png)
I considered running a sliding window function that returns the lowest values, but it seem impractical because the window size may be different. I also tried something like the code below, but the indices are relative to its own window array and that complicates things.
for i = 1:length(data)-window_sz % window_sz = 20 arbitrarily
window_range = data(i:i+window_sz-1,:);
[M I] = min(window_range);
del_rows(i,1)=I;
end
Any idea?
Thank you Ben
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Files and Folders에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!