MATLAB: Signal processing buffer timeline

buffertimeline

Hello,
I have som EGG signal which I have used a buffer on. My sampling fequency is 1000, NFFT=1000 and with 50% overlap (overlap=500). How can I create a timeline vector for the signal in matlab=

Best Answer

buffer() from the Signal Processing Toolbox can handle overlap.
If you are asking about timeseries objects, then the answer is that individual timeseries objects do not automatically support multiple sub-signals at all. You can extract sections of a timeseries, such as in a loop
NFFT=1000;
overlap=500;
for start_index = 1:NFFT-overlap:number_of_samples-NFFT+1
this_section = getsamples(TheTimeSeries, start_index:start_index+NFFT-1);
... do something
end