필터 지우기
필터 지우기

Problem in applying loop

조회 수: 1 (최근 30일)
Ali Asghar
Ali Asghar 2019년 8월 7일
댓글: Star Strider 2019년 8월 11일
dear
I want to apply loop in a way that there is a window of 2000 samples and will increment by 500 samples...
means window size (w) increase like: 0-2000, 2500-4500, 5000-7000, 7500-9500....till 30000.
then the window (w) apply in same way on data (x) like = 0-2000, 2500-4000 etc...
how can i do this?
x = dath001 % data, size 30000x4
w = hann(2000); % window
datawindow = w.*x(1:2000,:); % apply window in data

채택된 답변

Star Strider
Star Strider 2019년 8월 7일
You have the Signal Processing Toolbox, so see if the buffer function will do what you want.
  댓글 수: 5
Ali Asghar
Ali Asghar 2019년 8월 11일
Thanks alot dear....
Star Strider
Star Strider 2019년 8월 11일
As always, my pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 PHY Components에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by