I have some data with gaps in the time series. The indices of the gaps are found and also length and everything. The thing is that I would like to chop up my data (columns: time and measurements) into either several matrices/vectors or chop it up in a structure. My plan is to Fourier transform these small time series for further comparisons.
Lets try to explain in en example: Tdat is the timeseries and has 3825 points
% find number of gaps
nogap = diff(Tdat(find(diff(Tdat)>0.051))); %20Hz measurement
numgaps = length(nogap) %number of gaps = bumgaps+1
the number of gaps here is 8
%indexing the gaps
w = find(diff(Tdat)>0.51); %finding the gaps %0.051 since 1/20=0.05
u = find(diff(Tdat)<0.51); %finding indices with data
series = length(M)-length(u) %amount of data series without gaps
number of data series without gaps is 9
delta = diff(w) %amount of points between two gaps (constant
the amount of points in between those gaps is 425.
Thus I would like to have 9 different matrices/vectors with only the data and no time gaps each length 425.
Is there some way or haven't I searched good enough to find an answer?