Sliding window centered at a given point
이전 댓글 표시
Hi! I have a signal and I need to create a sliding window of known length (let's say x) but it needs to be centered at a given point (y). Can anyone help me? Thanks!
댓글 수: 1
Google "matlab sliding window".
Or check this list
답변 (1개)
Image Analyst
2019년 8월 24일
편집: Image Analyst
2019년 8월 24일
2 개 추천
What are you doing with signal values inside the sliding window? Taking the mean, std, or something custom? If it's some operation/function of your own invention, you can use nlfilter(). Otherwise maybe the family of mov***() might work, for example movmean(), etc. Or there's a variety of built-in functions, like sgolayfilt(), (which fits data in the window to a polynomial), etc.
댓글 수: 2
Laura petrescu
2019년 8월 24일
Image Analyst
2019년 8월 24일
Try movmean(), movstd(), movvar(), movmedian(), stdfilt(), and nlfilt().
For frequency info, try fft(), spectrogram(), periodogram(), and pwelch().
카테고리
도움말 센터 및 File Exchange에서 Spectral Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!