How to split a signal with same window size but with overlapping windows.
22 views (last 30 days)
Show older comments
I have an ecg type signal, I just have to apply my model on fixed length widows size. For that I have to divided my signal into sub signals of equal length.
Supoose if my window size = 100sec, at first, I will apply my model on 100 sec signal after that instead of start from 101 seconds, I want start the next subsignal from 51 seconds to get overlapping windows. Data file is attached.
Your help will be highly appreciated.
Thanks.
0 Comments
Answers (1)
Mahmoud20
on 20 May 2019
You can use the function buffer to create a signal matrix with overlapping windows from a signal vector.
y = buffer(x,n,p) will split the signal x into segments of length n samples with p samples overlap
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!