Problem in applying loop

12 Ansichten (letzte 30 Tage)
Ali Asghar
Ali Asghar am 7 Aug. 2019
Kommentiert: Star Strider am 11 Aug. 2019
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

Akzeptierte Antwort

Star Strider
Star Strider am 7 Aug. 2019
You have the Signal Processing Toolbox, so see if the buffer function will do what you want.
  5 Kommentare
Ali Asghar
Ali Asghar am 11 Aug. 2019
Thanks alot dear....
Star Strider
Star Strider am 11 Aug. 2019
As always, my pleasure.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by